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

DOMDocument does not like HTML5 and SVGs - PHP 8

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • None
    • 4.0.0-a1
    • Template Engine
    • php 8.0.9
      phpbb latest master branch on this date of posting

      Only visible if you have "debug.show_errors: true" in the yaml file.

       

      [phpBB Debug] PHP Warning: in file [ROOT]/phpbb/template/twig/extension/icon.php on line 202: DOMDocument::loadHTML(): Tag svg invalid in Entity, line: 1
      

      DOMDocument does not like HTML5 and SVGs but `@` suppression does not work with PHP 8

      Line 202 of icon.php

      		@$doc->loadHTML($code, LIBXML_HTML_NOIMPLIED | LIBXML_HTML_NODEFDTD);
      

       

            Unassigned Unassigned
            3Di 3Di [X] (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: