Skip to content

Commit

Permalink
#1145 check for FILE scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Aug 24, 2022
1 parent 24e086d commit 1d4c797
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ SOFTWARE.
<dependency>
<groupId>com.jcabi</groupId>
<artifactId>jcabi-xml</artifactId>
<version>0.25.0</version>
<version>0.25.1</version>
<optional>true</optional>
</dependency>
<dependency>
Expand All @@ -175,7 +175,7 @@ SOFTWARE.
<dependency>
<groupId>com.jcabi.incubator</groupId>
<artifactId>xembly</artifactId>
<version>0.27.0</version>
<version>0.28.0</version>
<scope>compile</scope>
<optional>true</optional>
</dependency>
Expand Down Expand Up @@ -258,7 +258,7 @@ SOFTWARE.
<dependency>
<groupId>net.sf.saxon</groupId>
<artifactId>Saxon-HE</artifactId>
<version>9.7.0-7</version>
<version>11.4</version>
<scope>test</scope>
</dependency>
<dependency>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/takes/rs/RsXslt.java
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ public Source resolve(final String href, final String base)
uri = URI.create(base).resolve(href);
}
final InputStream input;
if (uri.isAbsolute()) {
if (uri.isAbsolute() && !"file".equals(uri.getScheme())) {
try {
input = uri.toURL().openStream();
} catch (final IOException ex) {
Expand Down

0 comments on commit 1d4c797

Please sign in to comment.