diff options
author | Luis Bernardo <lbernardo@apache.org> | 2013-09-25 23:09:55 +0000 |
---|---|---|
committer | Luis Bernardo <lbernardo@apache.org> | 2013-09-25 23:09:55 +0000 |
commit | bd40eedf996567982667e5987f64be54df417f1e (patch) | |
tree | a149e11129aa03b23b64578a922853df93402f21 /src | |
parent | aea90d5225059a0264ef68fdee6d49d517fb6b68 (diff) | |
download | xmlgraphics-fop-bd40eedf996567982667e5987f64be54df417f1e.tar.gz xmlgraphics-fop-bd40eedf996567982667e5987f64be54df417f1e.zip |
FOP-2107: org.apache.batik.bridge.BridgeException: Unable to make sense of URL for connection; patch suggested by Matthias Reischenbacher and Robert Meyer comments.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1526329 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 68064343e..8b9e079ab 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(uri); + src.setSystemId(new File(uri).toURI().toURL().toExternalForm()); return src; } catch (URISyntaxException use) { return null; |