MDL-74853 various: add second parameter to htmlentities functions
commita5f92c041e40092992512c3eb40f1d2ad669076a
authorMarina Glancy <marina@moodle.com>
Fri, 28 Oct 2022 08:27:37 +0000 (28 10:27 +0200)
committerMarina Glancy <marina@moodle.com>
Mon, 28 Nov 2022 15:12:32 +0000 (28 16:12 +0100)
treede7a79eda9bd381c17ad942b004350a7aee03915
parent0ea3d45e04c3d54a3a472ddcb11606b30e227c50
MDL-74853 various: add second parameter to htmlentities functions

Default value of the $flag argument changed in PHP 8.1 from ENT_COMPAT to ENT_QUOTES | ENT_SUBSTITUTE
To ensure consistent behavior across different PHP version the second parameter is now required for the functions:
htmlspecialchars(), htmlentities(), htmlspecialchars_decode(), html_entity_decode() and get_html_translation_table()
55 files changed:
admin/roles/classes/define_role_table_advanced.php
admin/settings/plugins.php
admin/tool/brickfield/classes/accessibility.php
admin/tool/brickfield/classes/local/htmlchecker/reporters/report_array.php
admin/tool/brickfield/classes/local/htmlchecker/reporters/report_codehighlight.php
admin/tool/brickfield/classes/local/htmlchecker/reporters/report_xml.php
admin/tool/brickfield/classes/output/printable/renderer.php
backup/cc/cc_lib/gral_lib/functions.php
course/switchrole.php
filter/tex/texdebug.php
lib/behat/classes/behat_session_trait.php
lib/classes/output/mustache_pix_helper.php
lib/classes/text.php
lib/form/autocomplete.php
lib/form/tags.php
lib/moodlelib.php
lib/pear/PEAR/Exception.php
lib/rsslib.php
lib/searchlib.php
lib/setuplib.php
lib/tablelib.php
lib/tests/other/todochecker.php
lib/tests/text_test.php
lib/webdavlib.php
lib/weblib.php
lib/xmldb/xmldb_field.php
lib/xmldb/xmldb_index.php
lib/xmldb/xmldb_key.php
lib/xmldb/xmldb_structure.php
lib/xmldb/xmldb_table.php
media/classes/player_native.php
mod/assign/feedback/editpdf/classes/pdf.php
mod/bigbluebuttonbn/classes/local/helpers/mod_helper.php
mod/book/tool/exportimscp/locallib.php
mod/data/classes/preset.php
mod/data/field/latlong/field.class.php
mod/data/field/latlong/kml.php
mod/feedback/lib.php
mod/forum/classes/output/forum_post.php
mod/lesson/pagetypes/matching.php
mod/lti/auth.php
mod/lti/locallib.php
mod/wiki/parser/markups/creole.php
question/format/xml/format.php
question/type/gapselect/edit_form_base.php
question/type/match/tests/walkthrough_test.php
question/type/multianswer/edit_multianswer_form.php
reportbuilder/classes/table/custom_report_table.php
repository/url/lib.php
search/engine/solr/tests/engine_test.php
search/tests/document_test.php
tag/classes/tag.php
user/profile/field/text/field.class.php
user/selector/lib.php
webservice/renderer.php