svn commit: r1806679 - in /xmlgraphics/fop/trunk/fop-core/src: main/java/org/apache/fop/datatypes/URISpecification.java test/java/org/apache/fop/datatypes/URISpecificationTestCase.java

[email protected]
Newsgroups gmane.text.xml.fop.cvs
Message-ID <[email protected]>
Author: cbowditch
Date: Wed Aug 30 08:43:06 2017
New Revision: 1806679

URL: http://svn.apache.org/viewvc?rev=1806679&view=rev
Log:
fix FOP-2628

Modified:
    xmlgraphics/fop/trunk/fop-core/src/main/java/org/apache/fop/datatypes/URISpecification.java
    xmlgraphics/fop/trunk/fop-core/src/test/java/org/apache/fop/datatypes/URISpecificationTestCase.java

Modified: xmlgraphics/fop/trunk/fop-core/src/main/java/org/apache/fop/datatypes/URISpecification.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/fop-core/src/main/java/org/apache/fop/datatypes/URISpecification.java?rev=1806679&r1=1806678&r2=1806679&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/fop-core/src/main/java/org/apache/fop/datatypes/URISpecification.java (original)
+++ xmlgraphics/fop/trunk/fop-core/src/main/java/org/apache/fop/datatypes/URISpecification.java Wed Aug 30 08:43:06 2017
@@ -72,7 +72,7 @@ public final class URISpecification {
     }
 
     private static boolean isAlpha(char ch) {
-        return (ch >= 'A' && ch <= 'Z') || (ch >= 'A' && ch <= 'z');
+        return (ch >= 'A' && ch <= 'Z') || (ch >= 'a' && ch <= 'z');
     }
 
     private static boolean isHexDigit(char ch) {

Modified: xmlgraphics/fop/trunk/fop-core/src/test/java/org/apache/fop/datatypes/URISpecificationTestCase.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/fop-core/src/test/java/org/apache/fop/datatypes/URISpecificationTestCase.java?rev=1806679&r1=1806678&r2=1806679&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/fop-core/src/test/java/org/apache/fop/datatypes/URISpecificationTestCase.java (original)
+++ xmlgraphics/fop/trunk/fop-core/src/test/java/org/apache/fop/datatypes/URISpecificationTestCase.java Wed Aug 30 08:43:06 2017
@@ -60,6 +60,10 @@ public class URISpecificationTestCase {
 
         actual = URISpecification.escapeURI("http://localhost/test test.pdf#page=6");
         assertEquals("http://localhost/test%20test.pdf#page=6", actual);
+
+        actual = URISpecification.escapeURI("http://localhost/test^test.pdf");
+        assertEquals("http://localhost/test%5Etest.pdf", actual);
+
     }
 
 }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.