jericho 2002/07/25 03:43:29
Modified: src/util/org/apache/util URIUtil.java
Log:
- Enable to work on last escaped character
Reported and Patched by: [EMAIL PROTECTED]
Thanks to [EMAIL PROTECTED]
Revision Changes Path
1.6 +5 -5 jakarta-slide/src/util/org/apache/util/URIUtil.java
Index: URIUtil.java
===================================================================
RCS file: /home/cvs/jakarta-slide/src/util/org/apache/util/URIUtil.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- URIUtil.java 26 Apr 2002 14:18:16 -0000 1.5
+++ URIUtil.java 25 Jul 2002 10:43:29 -0000 1.6
@@ -340,7 +340,7 @@
int ox = 0;
while (ix < len) {
byte b = bytes[ix++]; // Get byte to test
- if ((b == '%') && (ix+2 < len)) {
+ if ((b == '%') && (ix+2 <= len)) {
b = (byte) ((convertHexDigit(bytes[ix++]) << 4)
+ convertHexDigit(bytes[ix++]));
}
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>