From f086d2f3ada97461223ce8f2142facb276b82387 Mon Sep 17 00:00:00 2001 From: "Andreas L. Delmelle" Date: Thu, 8 Feb 2007 17:46:57 +0000 Subject: [PATCH] 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 --- src/java/org/apache/fop/datatypes/URISpecification.java | 2 +- status.xml | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) 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.) -- 2.39.5