From 01337ed1937d7d40c7ab37e8a48d733148840f76 Mon Sep 17 00:00:00 2001 From: Mike Schinkel Date: Fri, 23 Jul 2021 18:39:15 -0400 Subject: [PATCH] Remove 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. Closes GH-419. --- include/layout.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/layout.inc b/include/layout.inc index f66187b70..28e27ee99 100644 --- a/include/layout.inc +++ b/include/layout.inc @@ -249,7 +249,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