diff options
| author | 2019-12-03 16:26:05 -0500 | |
|---|---|---|
| committer | 2019-12-03 22:26:05 +0100 | |
| commit | d33c0ff2caf4af887916b55070c42b504a5c1702 (patch) | |
| tree | f26015afe511ff12209550eede0cb5b346ea0c13 /lib/Minz/Request.php | |
| parent | adecd16aeca6ec540d9f9dfd3c614eeb4ea0e8d3 (diff) | |
Remove magicQuotesOff (#2697) (#2698)
* Remove magicQuotesOff (#2697)
Magic quotes have been deprecated since PHP 5.4 and as of PHP 7.4 `get_magic_quotes_gpc()` displays a warning.
* Remove unused Minz_Helper::stripslashes_r
`Minz_Helper::stripslashes_r` is no longer used.
It's last user was `Minz_Request::magicQuotesOff`
Diffstat (limited to 'lib/Minz/Request.php')
| -rw-r--r-- | lib/Minz/Request.php | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/lib/Minz/Request.php b/lib/Minz/Request.php index 9235f873a..299467afb 100644 --- a/lib/Minz/Request.php +++ b/lib/Minz/Request.php @@ -100,7 +100,6 @@ class Minz_Request { * Initialise la Request */ public static function init() { - self::magicQuotesOff(); self::initJSON(); } @@ -293,20 +292,6 @@ class Minz_Request { } } - /** - * Méthode désactivant les magic_quotes pour les variables - * $_GET - * $_POST - * $_COOKIE - */ - private static function magicQuotesOff() { - if (get_magic_quotes_gpc()) { - $_GET = Minz_Helper::stripslashes_r($_GET); - $_POST = Minz_Helper::stripslashes_r($_POST); - $_COOKIE = Minz_Helper::stripslashes_r($_COOKIE); - } - } - public static function isPost() { return isset($_SERVER['REQUEST_METHOD']) && $_SERVER['REQUEST_METHOD'] === 'POST'; |
