Author: toad
Date: 2007-11-13 20:14:50 +0000 (Tue, 13 Nov 2007)
New Revision: 15777

Modified:
   trunk/freenet/src/freenet/support/URLDecoder.java
Log:
Fix original bug: we weren't encoding letters or digits.

Modified: trunk/freenet/src/freenet/support/URLDecoder.java
===================================================================
--- trunk/freenet/src/freenet/support/URLDecoder.java   2007-11-13 20:12:59 UTC 
(rev 15776)
+++ trunk/freenet/src/freenet/support/URLDecoder.java   2007-11-13 20:14:50 UTC 
(rev 15777)
@@ -46,9 +46,7 @@

                for (int i = 0; i < len; i++) {
                        char c = s.charAt(i);
-                       if (Character.isLetterOrDigit(c))
-                               decodedBytes.write(c);
-                       else if (c == '%') {
+                       if (c == '%') {
                                if (i >= len - 2) {
                                        throw new URLEncodedFormatException(s);
                                }


Reply via email to