git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1806679 13f79535-47bb-0310-9956-ffa450edef68pull/6/head
@@ -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) { |
@@ -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); | |||
} | |||
} |