commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 19061] - ExtendedPeoperties.save(...) does not escape special characters
Date Fri, 18 Apr 2003 20:48:29 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19061>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19061

ExtendedPeoperties.save(...) does not escape special characters

mohankishore@yahoo.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |PatchAvailable



------- Additional Comments From mohankishore@yahoo.com  2003-04-18 20:48 -------
Have added a patch for escaping the back-slash characters. When adding a 
Property, now it unescapes the value (i.e. replaces 2 successive back-slashes 
with 1). When saving the object to a file, it escapes the commas and back-
slashes by placing a back-slash before them.

Have also added test cases for the same.

Note, the patch might break backward compatibility, but the change required to 
the property files would be minimal - i.e. replace all backslashes in the 
values, with 2 backslashes. You (still) need a single backslash at the end of 
the line, in order to continue the value on the next line.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message