From: Andreas L. Delmelle Date: Thu, 8 Feb 2007 17:46:57 +0000 (+0000) Subject: Bugzilla 41572: X-Git-Tag: fop-0_94~223 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f086d2f3ada97461223ce8f2142facb276b82387;p=xmlgraphics-fop.git Bugzilla 41572: URIs were not properly parsed if they contain bracketed part(s) Fix suggested by Erwin Tratar. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@504980 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/fop/datatypes/URISpecification.java b/src/java/org/apache/fop/datatypes/URISpecification.java index c6f8c078c..2a3a3cba9 100644 --- a/src/java/org/apache/fop/datatypes/URISpecification.java +++ b/src/java/org/apache/fop/datatypes/URISpecification.java @@ -40,7 +40,7 @@ public class URISpecification { */ href = href.trim(); if (href.startsWith("url(") && (href.indexOf(")") != -1)) { - href = href.substring(4, href.indexOf(")")).trim(); + href = href.substring(4, href.lastIndexOf(")")).trim(); if (href.startsWith("'") && href.endsWith("'")) { href = href.substring(1, href.length() - 1); } else if (href.startsWith("\"") && href.endsWith("\"")) { diff --git a/status.xml b/status.xml index de8c1f99e..4a4ffabae 100644 --- a/status.xml +++ b/status.xml @@ -28,6 +28,9 @@ + + Fix parsing 'url(...)' when the URL itself contains a bracketed part. + Support for GIF images in RTF output (RTF handler, only. Does not affect the RTF library.)