Author: nextgens
Date: 2007-11-27 20:20:22 +0000 (Tue, 27 Nov 2007)
New Revision: 15994

Modified:
   trunk/freenet/src/freenet/config/PersistentConfig.java
Log:
PersistentConfig: trim() lines we read from the config file. I don't see any 
reason why we would need trailing spaces... and that might lead to weird bugs 
like the one I've just fixed in the installer.

Modified: trunk/freenet/src/freenet/config/PersistentConfig.java
===================================================================
--- trunk/freenet/src/freenet/config/PersistentConfig.java      2007-11-27 
19:50:31 UTC (rev 15993)
+++ trunk/freenet/src/freenet/config/PersistentConfig.java      2007-11-27 
20:20:22 UTC (rev 15994)
@@ -67,7 +67,7 @@
                        if(val == null) return;
                }
                try {
-                       o.setInitialValue(val);
+                       o.setInitialValue(val.trim());
                } catch (InvalidConfigValueException e) {
                        Logger.error(this, "Could not parse config option 
"+name+": "+e, e);
                }


Reply via email to