aboutsummaryrefslogtreecommitdiffstats
path: root/fop-core/src/main
diff options
context:
space:
mode:
authorSimon Steiner <ssteiner@apache.org>2024-08-07 13:02:29 +0100
committerSimon Steiner <ssteiner@apache.org>2024-08-07 13:02:29 +0100
commitc11f43c9dbf529b87820d77ef501aa10699fc9d8 (patch)
treeb50d5fd72d75f32c748f02af60c21b227c6eed09 /fop-core/src/main
parentd54e5f7c1b9c68612cba0bd11f994eadcdb73cf4 (diff)
downloadxmlgraphics-fop-c11f43c9dbf529b87820d77ef501aa10699fc9d8.tar.gz
xmlgraphics-fop-c11f43c9dbf529b87820d77ef501aa10699fc9d8.zip
FOP-3198: Allow curly braces for src url
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, 2 insertions, 0 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 470f2e4ba..1fe530bd3 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
@@ -133,6 +133,8 @@ public class InternalResourceResolver {
}
String fixedUri = uriStr.replace('\\', '/');
fixedUri = fixedUri.replace(" ", "%20");
+ fixedUri = fixedUri.replace("{", "%7B");
+ fixedUri = fixedUri.replace("}", "%7D");
URI baseURI = new URI(fixedUri);
return baseURI;
}