Special characters break the project description
Status: Beta
Brought to you by:
worden
For example, I tried to create a page called "Evolution's_“gravitational_pull”_toward_mutualism" (note the curly quote marks), but once I add a $$...$$ element I can't preview the, because there's an error message that the XML parser can't parse the project description, and additionally the error message breaks the XHTML parser in my browser.
Anonymous
I removed the XHTML problem, but the underlying problem with the XML parser is still there.
Possibly I fixed this recently, but I'm not sure whether there's a record of that in the tracker. I'll follow up and try to resolve this ticket.
I had a report today that page title "White–Juday warp-field interferometer" - with a long dash in the first compound word - causes an uncaught exception from WW's ProjectDescription::newFromXML(). I recently changed from using htmlentities() to htmlspecialchars() with carefully chosen arguments for XML safety, so I think it's likely that this is fixed in the latest WW and I need to upload a new package to the sourceforge download page. But to make sure I want to test it in MW 1.22.4 first, which is what the reporter is using.
Additionally, the stack trace that the reporter sent reveals a WWException that is not caught. I should not allow exceptions to go uncaught.
Tested in MW 1.22.2. Bug is no longer there, according to that test.
Leaving this ticket open, however, until the exception issue is also fixed.