roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From snoopd...@apache.org
Subject svn commit: r577985 - /roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/config/WebloggerConfig.java
Date Fri, 21 Sep 2007 05:00:36 GMT
Author: snoopdave
Date: Thu Sep 20 22:00:36 2007
New Revision: 577985

URL: http://svn.apache.org/viewvc?rev=577985&view=rev
Log:
Fix for http://opensource.atlassian.com/projects/roller/browse/ROL-1568 - trim property values
on return

Modified:
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/config/WebloggerConfig.java

Modified: roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/config/WebloggerConfig.java
URL: http://svn.apache.org/viewvc/roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/config/WebloggerConfig.java?rev=577985&r1=577984&r2=577985&view=diff
==============================================================================
--- roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/config/WebloggerConfig.java
(original)
+++ roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/config/WebloggerConfig.java
Thu Sep 20 22:00:36 2007
@@ -138,7 +138,8 @@
      */
     public static String getProperty(String key) {
         log.debug("Fetching property ["+key+"="+config.getProperty(key)+"]");
-        return config.getProperty(key);
+        String value = config.getProperty(key);
+        return value == null ? value : value.trim();
     }
     
     /**
@@ -153,7 +154,7 @@
         if(value == null)
           return defaultValue;
         
-        return value;
+        return value.trim();
     }
 
     /**



Mime
View raw message