Browse Source

fix FOP-2628

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1806679 13f79535-47bb-0310-9956-ffa450edef68
pull/6/head
Chris Bowditch 6 years ago
parent
commit
444a97bd33

+ 1
- 1
fop-core/src/main/java/org/apache/fop/datatypes/URISpecification.java View File

@@ -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) {

+ 4
- 0
fop-core/src/test/java/org/apache/fop/datatypes/URISpecificationTestCase.java View File

@@ -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);

}

}

Loading…
Cancel
Save