File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change
1
+ Index: util/URIUtils.java
2
+ ===================================================================
3
+ --- util/URIUtils.java (revision 420)
4
+ +++ util/URIUtils.java (working copy)
5
+ @@ -82,14 +82,18 @@
6
+ URI cwd = null;
7
+
8
+ try {
9
+ - String path = encode(dir);
10
+ - if (!path.endsWith("/")) {
11
+ - path += "/";
12
+ - }
13
+ - if (!path.startsWith("/")) {
14
+ - path = "/" + path;
15
+ - }
16
+ - cwd = new URI("file:" + path);
17
+ + if (dir.startsWith("http://")) { // Skip this stuff if passed in an http:// URI
18
+ + cwd = new URI(dir);
19
+ + } else {
20
+ + String path = encode(dir);
21
+ + if (!path.endsWith("/")) {
22
+ + path += "/";
23
+ + }
24
+ + if (!path.startsWith("/")) {
25
+ + path = "/" + path;
26
+ + }
27
+ + cwd = new URI("file:" + path);
28
+ + }
29
+ } catch (URISyntaxException use) {
30
+ throw new XProcException(use);
31
+ }
You can’t perform that action at this time.
0 commit comments