Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#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


  • Anonymous
    2010-05-22

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

     
    Attachments

  • Anonymous
    2010-05-22

    • summary: html_entity_decode in setSegment invalidates document --> html_entity_decode in setSegment invalidated my document
     

  • Anonymous
    2010-05-22

    • summary: html_entity_decode in setSegment invalidated my document --> html_entity_decode in setSegment() invalidated my document
     

  • Anonymous
    2010-05-22

    • status: open --> open-works-for-me
     

  • Anonymous
    2010-05-22

    changed code was on line 214 ^_^

     

  • Anonymous
    2010-05-22

    and i changed it in odf.php ...