r4548 - trunk/src/edu/ucsb/nceas/metacat/service
daigle at ecoinformatics.org
daigle at ecoinformatics.org
Mon Nov 10 15:23:28 PST 2008
Author: daigle
Date: 2008-11-10 15:23:28 -0800 (Mon, 10 Nov 2008)
New Revision: 4548
Modified:
trunk/src/edu/ucsb/nceas/metacat/service/PropertyService.java
Log:
Trim property values
Modified: trunk/src/edu/ucsb/nceas/metacat/service/PropertyService.java
===================================================================
--- trunk/src/edu/ucsb/nceas/metacat/service/PropertyService.java 2008-11-10 23:22:04 UTC (rev 4547)
+++ trunk/src/edu/ucsb/nceas/metacat/service/PropertyService.java 2008-11-10 23:23:28 UTC (rev 4548)
@@ -605,8 +605,8 @@
throws GeneralPropertyException {
String value = PropertyService.getProperty(propertyName);
String newValue = request.getParameter(propertyName);
- if (newValue != null && !newValue.equals(value)) {
- PropertyService.setPropertyNoPersist(propertyName, newValue);
+ if (newValue != null && !newValue.trim().equals(value)) {
+ PropertyService.setPropertyNoPersist(propertyName, newValue.trim());
}
}
More information about the Metacat-cvs
mailing list