[web-php] master: Remove use of get_magic_quotes_gpc()

From: Date: Fri, 23 Jul 2021 22:38:52 +0000
Subject: [web-php] master: Remove use of get_magic_quotes_gpc()
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-29457@lists.php.net to get a copy of this message
Author: Mike Schinkel (mikeschinkel) Committer: GitHub (web-flow) Pusher: cmb69 Date: 2021-07-24T00:39:15+02:00 Commit: https://github.com/php/web-php/commit/01337ed1937d7d40c7ab37e8a48d733148840f76 Raw diff: https://github.com/php/web-php/commit/01337ed1937d7d40c7ab37e8a48d733148840f76.diff 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. Changed paths: M include/layout.inc Diff: 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

« previous php.webmaster (#29457) next »