X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=index.php;h=b1d0c9944d4c659dec9aea6cec55a863e1611154;hb=94c035ff717c4c836bb76109b013ffaa78f64ef1;hp=76526bd54717efeaf2d56eed8f83ed6a6970e67d;hpb=de901736a663934c1b67f09f1d586da665f0f036;p=github%2Fshaarli%2FShaarli.git diff --git a/index.php b/index.php index 76526bd5..b1d0c994 100644 --- a/index.php +++ b/index.php @@ -133,15 +133,6 @@ date_default_timezone_set($conf->get('general.timezone', 'UTC')); ob_start(); // Output buffering for the page cache. -// In case stupid admin has left magic_quotes enabled in php.ini: -if (get_magic_quotes_gpc()) -{ - function stripslashes_deep($value) { $value = is_array($value) ? array_map('stripslashes_deep', $value) : stripslashes($value); return $value; } - $_POST = array_map('stripslashes_deep', $_POST); - $_GET = array_map('stripslashes_deep', $_GET); - $_COOKIE = array_map('stripslashes_deep', $_COOKIE); -} - // Prevent caching on client side or proxy: (yes, it's ugly) header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); header("Cache-Control: no-store, no-cache, must-revalidate");