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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user