Menu

#108 Special characters break the project description

workingwiki
open
None
5
2014-04-09
2011-05-13
Lee Worden
No

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.

Discussion

  • Lee Worden

    Lee Worden - 2011-05-13

    I removed the XHTML problem, but the underlying problem with the XML parser is still there.

     
  • Lee Worden

    Lee Worden - 2014-04-06

    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.

     
  • Lee Worden

    Lee Worden - 2014-04-06

    Additionally, the stack trace that the reporter sent reveals a WWException that is not caught. I should not allow exceptions to go uncaught.

     
  • Lee Worden

    Lee Worden - 2014-04-09

    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.

     

Anonymous
Anonymous

Add attachments
Cancel