Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-16532

Example post is stored as invalid XML

    XMLWordPrintable

    Details

      Description

      On a new board install, an example post is added to the database. The post_text field in the phpbb_posts table contains the raw language: it is missing any XML tags which are expected by some textformatter functions that interpret the text as XML using DOMDocument::loadXML().

      For example, \s9e\TextFormatter\Utils::removeFormatting throws an error: Start tag expected, '<' not found in Entity, line: 1

      When the post is edited and saved (without actually changing any content) the message is stored with <t></t> wrapped around it and the loadXML() function works fine.

        Attachments

          Activity

            People

            Assignee:
            Marc Marc
            Reporter:
            kasimi kasimi
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: