Author: j16sdiz
Date: 2008-12-19 13:23:20 +0000 (Fri, 19 Dec 2008)
New Revision: 24584
Modified:
trunk/freenet/src/freenet/keys/FreenetURI.java
Log:
no constaint String.length()
Modified: trunk/freenet/src/freenet/keys/FreenetURI.java
===================================================================
--- trunk/freenet/src/freenet/keys/FreenetURI.java 2008-12-19 13:22:53 UTC
(rev 24583)
+++ trunk/freenet/src/freenet/keys/FreenetURI.java 2008-12-19 13:23:20 UTC
(rev 24584)
@@ -287,7 +287,7 @@
while((slash2 = URI.lastIndexOf("/")) != -1) {
String s;
try {
- s = URLDecoder.decode(URI.substring(slash2 +
"/".length()), true);
+ s = URLDecoder.decode(URI.substring(slash2 + 1
/* "/".length() */), true);
} catch(URLEncodedFormatException e) {
MalformedURLException ue = new
MalformedURLException(e.toString());
ue.initCause(e);
_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs