aboutsummaryrefslogtreecommitdiffstats
path: root/fop-core/src/main
diff options
context:
space:
mode:
authorSimon Steiner <ssteiner@apache.org>2021-10-12 14:10:49 +0000
committerSimon Steiner <ssteiner@apache.org>2021-10-12 14:10:49 +0000
commit8be0a4a4dc922d2c8a08728d08bb697dd35442bd (patch)
tree4ac2e73b3a4b29ef107abf701c839efd97a29e16 /fop-core/src/main
parentb8f16c486a5cced199c2728edb6712f3aa3838db (diff)
downloadxmlgraphics-fop-8be0a4a4dc922d2c8a08728d08bb697dd35442bd.tar.gz
xmlgraphics-fop-8be0a4a4dc922d2c8a08728d08bb697dd35442bd.zip
FOP-2973: Cannot use custom schemes starting with "data" in resource resolver
Thanks to J Frank git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1894165 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'fop-core/src/main')
-rw-r--r--fop-core/src/main/java/org/apache/fop/apps/io/InternalResourceResolver.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/fop-core/src/main/java/org/apache/fop/apps/io/InternalResourceResolver.java b/fop-core/src/main/java/org/apache/fop/apps/io/InternalResourceResolver.java
index af0a26478..a6fbfafc9 100644
--- a/fop-core/src/main/java/org/apache/fop/apps/io/InternalResourceResolver.java
+++ b/fop-core/src/main/java/org/apache/fop/apps/io/InternalResourceResolver.java
@@ -86,7 +86,7 @@ public class InternalResourceResolver {
* @throws IOException if an I/O error occurred
*/
public Resource getResource(URI uri) throws IOException {
- if (uri.getScheme() != null && uri.getScheme().startsWith("data")) {
+ if (uri.getScheme() != null && uri.getScheme().equals("data")) {
return new Resource(resolveDataURI(uri.toASCIIString()));
}
return resourceResolver.getResource(resolveFromBase(uri));