diff options
author | Willi Eggeling <mail@wje-online.de> | 2017-08-26 11:27:18 +0200 |
---|---|---|
committer | Willi Eggeling <mail@wje-online.de> | 2017-08-26 11:27:18 +0200 |
commit | 94c035ff717c4c836bb76109b013ffaa78f64ef1 (patch) | |
tree | f78c178d2e84253cecb8387a4c33514331939692 /index.php | |
parent | de901736a663934c1b67f09f1d586da665f0f036 (diff) | |
download | Shaarli-94c035ff717c4c836bb76109b013ffaa78f64ef1.tar.gz Shaarli-94c035ff717c4c836bb76109b013ffaa78f64ef1.tar.zst Shaarli-94c035ff717c4c836bb76109b013ffaa78f64ef1.zip |
removed doc and code references to magic quotes
- removed all references to magic quotes
- magic quotes are not supported on PHP >= 5.4 (https://secure.php.net/manual/en/security.magicquotes.php)
- Shaarli does not support PHP < 5.5
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 9 |
1 files changed, 0 insertions, 9 deletions
@@ -133,15 +133,6 @@ date_default_timezone_set($conf->get('general.timezone', 'UTC')); | |||
133 | 133 | ||
134 | ob_start(); // Output buffering for the page cache. | 134 | ob_start(); // Output buffering for the page cache. |
135 | 135 | ||
136 | // In case stupid admin has left magic_quotes enabled in php.ini: | ||
137 | if (get_magic_quotes_gpc()) | ||
138 | { | ||
139 | function stripslashes_deep($value) { $value = is_array($value) ? array_map('stripslashes_deep', $value) : stripslashes($value); return $value; } | ||
140 | $_POST = array_map('stripslashes_deep', $_POST); | ||
141 | $_GET = array_map('stripslashes_deep', $_GET); | ||
142 | $_COOKIE = array_map('stripslashes_deep', $_COOKIE); | ||
143 | } | ||
144 | |||
145 | // Prevent caching on client side or proxy: (yes, it's ugly) | 136 | // Prevent caching on client side or proxy: (yes, it's ugly) |
146 | header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); | 137 | header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); |
147 | header("Cache-Control: no-store, no-cache, must-revalidate"); | 138 | header("Cache-Control: no-store, no-cache, must-revalidate"); |