git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@396263 13f79535-47bb-0310-9956-ffa450edef68pull/25/head
@@ -410,7 +410,9 @@ public class FOUserAgent { | |||
*/ | |||
public Source resolveURI(String uri, String base) { | |||
Source source = null; | |||
if (uriResolver != null) { | |||
//RFC 2397 data URLs don't need to be resolved, just decode them. | |||
boolean bypassURIResolution = uri.startsWith("data:"); | |||
if (!bypassURIResolution && uriResolver != null) { | |||
try { | |||
source = uriResolver.resolve(uri, base); | |||
} catch (TransformerException te) { |
@@ -571,7 +571,9 @@ public class FopFactory { | |||
*/ | |||
public Source resolveURI(String uri, String base) { | |||
Source source = null; | |||
if (uriResolver != null) { | |||
//RFC 2397 data URLs don't need to be resolved, just decode them. | |||
boolean bypassURIResolution = uri.startsWith("data:"); | |||
if (!bypassURIResolution && uriResolver != null) { | |||
try { | |||
source = uriResolver.resolve(uri, base); | |||
} catch (TransformerException te) { |