Author: toad
Date: 2006-09-29 12:29:41 +0000 (Fri, 29 Sep 2006)
New Revision: 10562
Modified:
trunk/freenet/src/freenet/node/fcp/ClientPutDirMessage.java
Log:
explain with comment
Modified: trunk/freenet/src/freenet/node/fcp/ClientPutDirMessage.java
===================================================================
--- trunk/freenet/src/freenet/node/fcp/ClientPutDirMessage.java 2006-09-29
12:28:51 UTC (rev 10561)
+++ trunk/freenet/src/freenet/node/fcp/ClientPutDirMessage.java 2006-09-29
12:29:41 UTC (rev 10562)
@@ -50,6 +50,7 @@
if(u == null)
throw new
MessageInvalidException(ProtocolErrorMessage.MISSING_FIELD, "No URI",
identifier);
FreenetURI uu = new FreenetURI(fs.get("URI"));
+ // Client is allowed to put a slash at the end if it
wants to, but this is discouraged.
String[] meta = uu.getAllMetaStrings();
if(meta != null && meta.length == 1 && meta[0].length()
== 0)
uu = uu.setMetaString(null);