#10 html_entity_decode in setSegment() invalidated my document

open-works-for-me
nobody
None
5
2010-05-22
2010-05-22
Anonymous
No

i had a '&' in my odtphp template file (& in the content.xml) and after parcing, the document was unreadable.
the '&' was inside a segment. i changed the line 243 from

if (preg_match($reg, html_entity_decode($this->contentXml), $m) == 0) {
to
if (preg_match($reg, ($this->contentXml), $m) == 0) {

that seemed to have worked for me. just wanted to share ;-).
realy great work you guys did!!! saved me a bunch of work. keep it up, love windwerfer.

Discussion

  • Comment has been marked as spam. 
    Undo

    You can see all pending comments posted by this user  here

    Anonymous - 2010-05-22

    error occured in the line with: 'DÜNN & SUPERENTSPIE'

     
  • Comment has been marked as spam. 
    Undo

    You can see all pending comments posted by this user  here

    Anonymous - 2010-05-22
    • summary: html_entity_decode in setSegment invalidates document --> html_entity_decode in setSegment invalidated my document
     
  • Comment has been marked as spam. 
    Undo

    You can see all pending comments posted by this user  here

    Anonymous - 2010-05-22
    • summary: html_entity_decode in setSegment invalidated my document --> html_entity_decode in setSegment() invalidated my document
     
  • Comment has been marked as spam. 
    Undo

    You can see all pending comments posted by this user  here

    Anonymous - 2010-05-22
    • status: open --> open-works-for-me
     
  • Comment has been marked as spam. 
    Undo

    You can see all pending comments posted by this user  here

    Anonymous - 2010-05-22

    changed code was on line 214 ^_^

     
  • Comment has been marked as spam. 
    Undo

    You can see all pending comments posted by this user  here

    Anonymous - 2010-05-22

    and i changed it in odf.php ...

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks