diff options
author | Luis Bernardo <lbernardo@apache.org> | 2014-07-27 16:25:25 +0000 |
---|---|---|
committer | Luis Bernardo <lbernardo@apache.org> | 2014-07-27 16:25:25 +0000 |
commit | e5fd61ed972a5548675fbcc784d2693119fe548c (patch) | |
tree | 64d3500336b2b3de9154e722cc863fbb0eca372d /src | |
parent | 812cff2121762a58e037bfde850a0c03432db6d2 (diff) | |
download | xmlgraphics-fop-e5fd61ed972a5548675fbcc784d2693119fe548c.tar.gz xmlgraphics-fop-e5fd61ed972a5548675fbcc784d2693119fe548c.zip |
FOP-2107: org.apache.batik.bridge.BridgeException: Unable to make sense of URL for connection; implemented a better approach.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1613811 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r-- | src/java/org/apache/fop/apps/FOUserAgent.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/java/org/apache/fop/apps/FOUserAgent.java b/src/java/org/apache/fop/apps/FOUserAgent.java index ca267fa8a..239261b84 100644 --- a/src/java/org/apache/fop/apps/FOUserAgent.java +++ b/src/java/org/apache/fop/apps/FOUserAgent.java @@ -408,7 +408,7 @@ public class FOUserAgent { try { // Have to do this so we can resolve data URIs StreamSource src = new StreamSource(resourceResolver.getResource(uri)); - src.setSystemId(new File(uri).toURI().toURL().toExternalForm()); + src.setSystemId(uri); return src; } catch (URISyntaxException use) { return null; |