1
0
mirror of https://github.com/php/web-php.git synced 2026-03-23 23:02:13 +01:00

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.
This commit is contained in:
Mike Schinkel
2021-07-23 18:39:15 -04:00
committed by GitHub
parent 264eb72b0c
commit 01337ed193

View File

@@ -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