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

(ITS#4174) Escape XML characters in writeModifyRequestEntry()



Full_Name: Simon Brys
Version: Just jldap CVS checkout from Nov 15, 2005
OS: Novell Linux Desktop 9
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (213.132.138.190)


ITS 3436 modified writeAddRequestEntry() in com/novell/ldap/util/DSMLWriter to
call writeAttribute(), which properly escapes XML characters.

This functionality should also be introduced into writeModifyRequestEntry(), so
an LDIF attribute with value:

     a</value>d<value>c

is translated to DSML like this:

     <value>a&lt;/value&gt;d&lt;value&gt;c</value>

instead of this:

     <value>a</value>d<value>c</value>
.