Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-21015

ODF Export containing ampersand fails

    XMLWordPrintable

    Details

      Description

      Export of a an eZ Publish ContentObject containing an ampersand in an attribute of datatype eztext or ezstring fails.

      By changing the following lines in the file extension/ezodf/classes/ezoogenerator.php we were able to fix the problem:

      • Class eZOOGenerator

      function addHeader( $text, $level = 1, $paragraphArray = array() )
      --> Line 299 original:
      $headerContents['Text'] = $text;
      --> Changed to:
      $headerContents['Text'] = htmlspecialchars( $text );

      function addParagraph()
      --> Line 422 original:
      $paragraphArray = array( array( 'Type' => 'text', "Content" => isset( $argArray[0] ) ? $argArray[0] : '' ) );
      --> Changed to:
      $paragraphArray = array( array( 'Type' => 'text', "Content" => isset( $argArray[0] ) ? htmlspecialchars( $argArray[0] ) : '' ) );

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              tao@rup Tamara Oellinger
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: