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

Changing default argument in htmlspecialchars* functions causes test fail

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Fixed
    • 4.0.0-a1, 3.3.3-RC1
    • 3.3.4-RC1
    • Other
    • None

    Description

      In PHP 8.1, htmlspecialchars(), htmlentities(), htmlspecialchars_decode(), html_entitity_decode() and get_html_translation_table() now use ENT_QUOTES | ENT_SUBSTITUTE rather than ENT_COMPAT by default. This means that ' is escaped to ' while previously it was left alone.
      See https://github.com/php/php-src/commit/50eca61f68815005f3b0f808578cc1ce3b4297f0
      This changes phpBB's email handling and other cases involving respective functions on PHP 8.1 and causes at least function make_clickable() test failure. See https://github.com/phpbb/phpbb/pull/6128/checks?check_run_id=1728479510

      Attachments

        Activity

          People

            CHItA CHItA
            rxu rxu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: