From fd781b1b0c1de07f002a7f1c8d01c07b4ad8000f Mon Sep 17 00:00:00 2001 From: Mike Schinkel Date: Wed, 21 Jul 2021 13:29:28 -0400 Subject: [PATCH 1/2] Removes use of get_magic_quotes_gpc() As get_magic_quotes_gpc() has been removed in PHP 8.0, this PR removes it from the clean() function in layout.inc. --- include/layout.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/layout.inc b/include/layout.inc index fa61262e74..7fae80a760 100644 --- a/include/layout.inc +++ b/include/layout.inc @@ -248,7 +248,7 @@ function sect_to_file($string) { } function clean($var) { - return htmlspecialchars(get_magic_quotes_gpc() ? stripslashes($var) : $var, ENT_QUOTES); + return htmlspecialchars( $var, ENT_QUOTES); } // Clean out the content of one user note for printing to HTML From ae32cfc89c593b567ae9158a83d5f9d185a3e1b0 Mon Sep 17 00:00:00 2001 From: Mike Schinkel Date: Fri, 23 Jul 2021 17:55:40 -0400 Subject: [PATCH 2/2] Removed space at @cmb69's request --- include/layout.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/layout.inc b/include/layout.inc index 7fae80a760..5c6d84ac74 100644 --- a/include/layout.inc +++ b/include/layout.inc @@ -248,7 +248,7 @@ function sect_to_file($string) { } function clean($var) { - return htmlspecialchars( $var, ENT_QUOTES); + return htmlspecialchars($var, ENT_QUOTES); } // Clean out the content of one user note for printing to HTML