preparing unit test for request object

This commit is contained in:
El RIDO
2015-09-27 15:37:17 +02:00
parent ce3f10f143
commit 6b7dc44039
2 changed files with 106 additions and 1 deletions

View File

@@ -103,7 +103,7 @@ class zerobin
}
// in case stupid admin has left magic_quotes enabled in php.ini
if (get_magic_quotes_gpc())
if (function_exists('get_magic_quotes_gpc') && get_magic_quotes_gpc())
{
$_POST = array_map('filter::stripslashes_deep', $_POST);
$_GET = array_map('filter::stripslashes_deep', $_GET);