[freenet-cvs] r15777 - trunk/freenet/src/freenet/support

toad at freenetproject.org toad at freenetproject.org
Tue Nov 13 20:14:50 UTC 2007


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




More information about the cvs mailing list