From ac7c952b8450fd640d4d082fa59e710acd26fbd0 Mon Sep 17 00:00:00 2001 From: Marina Glancy Date: Tue, 21 Dec 2021 13:15:03 +0100 Subject: [PATCH] MDL-73435 mod_wiki: htmlspecialchars changed default in PHP8.1 --- mod/wiki/parser/markups/creole.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/wiki/parser/markups/creole.php b/mod/wiki/parser/markups/creole.php index 0f642d88d19..ab5e006afe6 100644 --- a/mod/wiki/parser/markups/creole.php +++ b/mod/wiki/parser/markups/creole.php @@ -87,7 +87,7 @@ class creole_parser extends wiki_markup_parser { */ protected function before_parsing() { - $this->string = htmlspecialchars($this->string); + $this->string = htmlspecialchars($this->string, ENT_COMPAT); parent::before_parsing(); }