aboutsummaryrefslogtreecommitdiffstats
path: root/src/org/apache/fop/image
diff options
context:
space:
mode:
authorKeiron Liddle <keiron@apache.org>2001-09-07 14:10:07 +0000
committerKeiron Liddle <keiron@apache.org>2001-09-07 14:10:07 +0000
commit8152ec630554124aec0a88f4a875af52ee715479 (patch)
treef492dabca8aae368d67b0d41b8a488d5d37aa310 /src/org/apache/fop/image
parente8b6dcb573f893395ae10346fa3d6f619c96e732 (diff)
downloadxmlgraphics-fop-8152ec630554124aec0a88f4a875af52ee715479.tar.gz
xmlgraphics-fop-8152ec630554124aec0a88f4a875af52ee715479.zip
forgot about quotes
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194456 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/org/apache/fop/image')
-rw-r--r--src/org/apache/fop/image/FopImageFactory.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/org/apache/fop/image/FopImageFactory.java b/src/org/apache/fop/image/FopImageFactory.java
index 8e81761bf..69d4a57e7 100644
--- a/src/org/apache/fop/image/FopImageFactory.java
+++ b/src/org/apache/fop/image/FopImageFactory.java
@@ -52,6 +52,11 @@ public class FopImageFactory {
href = href.trim();
if(href.startsWith("url(") && (href.indexOf(")") != -1)) {
href = href.substring(4, href.indexOf(")")).trim();
+ if(href.startsWith("'") && href.endsWith("'")) {
+ href = href.substring(1, href.length() - 1);
+ } else if(href.startsWith("\"") && href.endsWith("\"")) {
+ href = href.substring(1, href.length() - 1);
+ }
}
try {
// try url as complete first, this can cause