From 956ec3d3a8008002a685ab0f8acc8ae72aa5290c Mon Sep 17 00:00:00 2001 From: hns Date: Thu, 3 Oct 2002 11:40:58 +0000 Subject: [PATCH] cut off trailing whitespace on property values --- src/helma/util/SystemProperties.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/helma/util/SystemProperties.java b/src/helma/util/SystemProperties.java index 52d617a3..c129cee2 100644 --- a/src/helma/util/SystemProperties.java +++ b/src/helma/util/SystemProperties.java @@ -160,6 +160,9 @@ public final class SystemProperties extends Properties { * otherwise changes will be lost whe the file is next modified. */ public Object put (Object key, Object value) { + // cut off trailing whitespace + if (value != null) + value = value.toString().trim(); if (newProps == null) return props.put (key.toString().toLowerCase(), value); else