-
Bug
-
Resolution: Fixed
-
Minor
-
4.0.1, 4.1
Change in PHP8.1 (see https://github.com/php/php-src/blob/PHP-8.1/UPGRADING )
htmlspecialchars(), htmlentities(), htmlspecialchars_decode(),
|
html_entity_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.
|
One instance of this, which was causing unit test failures in wiki, was reported and fixed in MDL-73435. This issue deals with addressing the other cases - which aren't captured by unit tests and may need to manually discovered on a case by case basis.