aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/layoutmgr/ExternalDocumentLayoutManager.java
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2008-01-14 11:01:11 +0000
committerJeremias Maerki <jeremias@apache.org>2008-01-14 11:01:11 +0000
commite77d6863bbe2671af4a34d250417867264631238 (patch)
treef8c3208cfbe365c53c00328ec8c55624ff0943f5 /src/java/org/apache/fop/layoutmgr/ExternalDocumentLayoutManager.java
parent6101c1c37f5f2f5be2cfccc91f55112084ce6882 (diff)
downloadxmlgraphics-fop-e77d6863bbe2671af4a34d250417867264631238.tar.gz
xmlgraphics-fop-e77d6863bbe2671af4a34d250417867264631238.zip
java.net.URI doesn't eat non-escaped URIs so I added an escaping method to URISpecification that should cover most cases. Usually, it's just about a space in a filename.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@611766 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/layoutmgr/ExternalDocumentLayoutManager.java')
-rw-r--r--src/java/org/apache/fop/layoutmgr/ExternalDocumentLayoutManager.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/java/org/apache/fop/layoutmgr/ExternalDocumentLayoutManager.java b/src/java/org/apache/fop/layoutmgr/ExternalDocumentLayoutManager.java
index 0e51517f2..89065185b 100644
--- a/src/java/org/apache/fop/layoutmgr/ExternalDocumentLayoutManager.java
+++ b/src/java/org/apache/fop/layoutmgr/ExternalDocumentLayoutManager.java
@@ -44,6 +44,7 @@ import org.apache.fop.area.RegionViewport;
import org.apache.fop.area.inline.Image;
import org.apache.fop.area.inline.Viewport;
import org.apache.fop.datatypes.FODimension;
+import org.apache.fop.datatypes.URISpecification;
import org.apache.fop.fo.Constants;
import org.apache.fop.fo.extensions.ExternalDocument;
import org.apache.fop.layoutmgr.inline.ImageLayout;
@@ -114,7 +115,7 @@ public class ExternalDocumentLayoutManager extends AbstractPageSequenceLayoutMan
}
URI originalURI;
try {
- originalURI = new URI(uri);
+ originalURI = new URI(URISpecification.escapeURI(uri));
int pageIndex = 1;
while (hasMoreImages) {
URI tempURI = new URI(originalURI.getScheme(),