From 04d99c0683615d730d57375ec8be53065704f894 Mon Sep 17 00:00:00 2001 From: Emilio Wuerges Date: Fri, 30 Jul 2021 18:04:12 -0300 Subject: Since PHP 7, the function get_magic_quotes_gpc() was deprecated and always returned false. Thus, the code removed by the commit is unreachable. In PHP8 the function was removed. --- src/globals.php | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src') diff --git a/src/globals.php b/src/globals.php index da34c1a..b7cecd4 100755 --- a/src/globals.php +++ b/src/globals.php @@ -24,10 +24,6 @@ function sanitizeVariables(&$item, $key) { if (!is_array($item)) { - // undoing 'magic_quotes_gpc = On' directive - if (get_magic_quotes_gpc()) - $item = stripcslashes($item); - $item = sanitizeText($item); } } -- cgit v1.2.3