You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by ad...@apache.org on 2007/02/08 18:46:57 UTC

svn commit: r504980 - in /xmlgraphics/fop/trunk: src/java/org/apache/fop/datatypes/URISpecification.java status.xml

Author: adelmelle
Date: Thu Feb  8 09:46:57 2007
New Revision: 504980

URL: http://svn.apache.org/viewvc?view=rev&rev=504980
Log:
Bugzilla 41572:
URIs were not properly parsed if they contain bracketed part(s)

Fix suggested by Erwin Tratar.

Modified:
    xmlgraphics/fop/trunk/src/java/org/apache/fop/datatypes/URISpecification.java
    xmlgraphics/fop/trunk/status.xml

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/datatypes/URISpecification.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/datatypes/URISpecification.java?view=diff&rev=504980&r1=504979&r2=504980
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/datatypes/URISpecification.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/datatypes/URISpecification.java Thu Feb  8 09:46:57 2007
@@ -40,7 +40,7 @@
          */
         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("\"")) {

Modified: xmlgraphics/fop/trunk/status.xml
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/status.xml?view=diff&rev=504980&r1=504979&r2=504980
==============================================================================
--- xmlgraphics/fop/trunk/status.xml (original)
+++ xmlgraphics/fop/trunk/status.xml Thu Feb  8 09:46:57 2007
@@ -28,6 +28,9 @@
 
   <changes>
     <release version="FOP Trunk">
+      <action context="Code" dev="AD" type="fix" fixes-bug="41572" due-to="Erwin Tratar">
+        Fix parsing 'url(...)' when the URL itself contains a bracketed part.
+      </action>
       <action context="Code" dev="JM" type="add">
         Support for GIF images in RTF output (RTF handler, only. Does not affect the RTF library.)
       </action>



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-commits-help@xmlgraphics.apache.org