Revision 4548
Added by daigle about 16 years ago
src/edu/ucsb/nceas/metacat/service/PropertyService.java | ||
---|---|---|
605 | 605 |
throws GeneralPropertyException { |
606 | 606 |
String value = PropertyService.getProperty(propertyName); |
607 | 607 |
String newValue = request.getParameter(propertyName); |
608 |
if (newValue != null && !newValue.equals(value)) { |
|
609 |
PropertyService.setPropertyNoPersist(propertyName, newValue); |
|
608 |
if (newValue != null && !newValue.trim().equals(value)) {
|
|
609 |
PropertyService.setPropertyNoPersist(propertyName, newValue.trim());
|
|
610 | 610 |
} |
611 | 611 |
} |
612 | 612 |
|
Also available in: Unified diff
Trim property values