Listing Display
Bug Id ?
143
Reporter ?
Marcel Gerrits
Product/Version ?
Bugdar / 1.2.2
Status ?
Unconfirmed
Severity ?
Major
Duplicate Of ?
- none -
Fixed in Revision ?
Mstone ?
Summary ?
System fails when display name contains ampersand
Report Time ?
November 8, 2008 08:59 PM
Assignment ?
Robert
Resolution ?
Open
Priority ?
Normal
Dependencies ?
- none -
Mstone (old) ?


Votes
For: 0 (0%)
Against: 0 (0%)
Total: 0

November 8, 2008 08:59 PM Marcel Gerrits
Hello, I have been debugging for hours why the bugdar system stopped working after changing status of a bug report. Every time I ended up with an XML error in framework/xml.php on line 151.

The cause of the problem I found to be an ampersand (&) sign in the display name of the user.
I could very easily reproduce the problem by putting an ampersand sign in the summary text (this also triggers the problem).

Suggested fix: replace all HTML entities before generating the XML file (eg with htmlentities() or html_entity_encode())