Skip to content

Commit 01337ed

Browse files
authored
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 phpGH-419.
1 parent 264eb72 commit 01337ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/layout.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ function sect_to_file($string) {
249249
}
250250

251251
function clean($var) {
252-
return htmlspecialchars(get_magic_quotes_gpc() ? stripslashes($var) : $var, ENT_QUOTES);
252+
return htmlspecialchars($var, ENT_QUOTES);
253253
}
254254

255255
// Clean out the content of one user note for printing to HTML

0 commit comments

Comments
 (0)