[Date Prev][Date Next] [Chronological] [Thread] [Top]

(ITS#3505) Handling apos in DSMLWriter considered buggy

Full_Name: Martin Schulte
Version: 2.2.20
OS: Debian Linux sarge
Submission from: (NULL) (

While working with ldap.jar we encountered problems when the output includes the
apostrophe sign.

A view into DSMLWriter.java shows easily that a semicolon is missing:
				xmlvalue = xmlvalue.replaceAll("&", "&");
				xmlvalue = xmlvalue.replaceAll("<", "&lt;");
				xmlvalue = xmlvalue.replaceAll(">", "&gt;");
// No semicolon in the line below
				xmlvalue = xmlvalue.replaceAll("'", "&apos");
				xmlvalue = xmlvalue.replaceAll("\"", "&quot;");