[cvsnt] fileattr.xml problem with & character

Erik Moons erik.moons at isac.be
Wed Sep 7 20:22:48 BST 2005



> -----Original Message-----
> From: Merrill Cornish [mailto:merrill.cornish at earthlink.net]
> Sent: woensdag 7 september 2005 20:49
> To: erik.moons at isac.be; cvsnt at cvsnt.org
> Subject: Re: [cvsnt] fileattr.xml problem with & character
> 
> >>> Probably something that needs to be corrected?
> 
> No.  Ampersands are active in quoted strings so they can be used as
introducers to a
> multitude of special characters.  This usage is similar to the backslash
in C and C++
> strings used to introduce special characters such as \t and \n.  So, in
either XML or C,
> you have to escape the introducer characters.
> 
> Merrill

Correct, but when converting the older "fileattr" format to the XML based
"fileattr.xml" (when upgrading from cvsnt2.0.51 to 2.5.0.2b2064) the escape
sequence is not used and the fileattr.xml contains an unescaped & generating
the error.
I only encountered this problem after upgrading and with existing
repositories, newly created repositories don't suffer from this and &'s are
correctly escaped.

Erik.





More information about the cvsnt mailing list