DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11160>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11160 URIUtil.unescape does not work on last escaped character Summary: URIUtil.unescape does not work on last escaped character Product: Slide Version: Nightly Platform: All OS/Version: All Status: NEW Severity: Normal Priority: Other Component: WebDAV client AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] org.apache.util.URIUtil.unescape does not unescape the last escaped character as it fails the length test (eg. Test%24%24 becomes Test$%24). The fix is in the patch below. --- URIUtil.cvs.java 2002-07-24 20:37:41.000000000 +0100 +++ URIUtil.java 2002-07-24 20:37:52.000000000 +0100 @@ -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]>
