From db5412526259f30ded6eac111cbec640fc166d03 Mon Sep 17 00:00:00 2001 From: Damian Mooyman Date: Sat, 14 Mar 2015 21:24:11 +1300 Subject: [PATCH] Deprecate stripslashes_recursively and magic quotes This code is removed from 4.0 --- core/Constants.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/Constants.php b/core/Constants.php index 574773fc9..7c5a526d2 100644 --- a/core/Constants.php +++ b/core/Constants.php @@ -78,6 +78,7 @@ foreach ($dirsToCheck as $dir) { // GLOBALS AND DEFINE SETTING function stripslashes_recursively(&$array) { + trigger_error('stripslashes_recursively is deprecated in 3.2', E_USER_DEPRECATED); foreach($array as $k => $v) { if(is_array($v)) stripslashes_recursively($array[$k]); else $array[$k] = stripslashes($v); @@ -140,7 +141,7 @@ if(!isset($_SERVER['HTTP_HOST'])) { if($_COOKIE) stripslashes_recursively($_COOKIE); // No more magic_quotes! trigger_error('get_magic_quotes_gpc support is being removed from Silverstripe. Please set this to off in ' . - ' your php.ini and see http://php.net/manual/en/security.magicquotes.php', E_USER_WARNING); + ' your php.ini and see http://php.net/manual/en/security.magicquotes.php', E_USER_DEPRECATED); } /**