Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-16532

Example post is stored as invalid XML

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.3.2-RC1
    • 3.2.9
    • Installation system
    • None

      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.

            Marc Marc
            kasimi kasimi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: