Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/erikdubbelboer/phpRedisAdmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Voříšek <mvorisek@mvorisek.cz>2020-01-10 11:39:02 +0300
committerErik Dubbelboer <erik@dubbelboer.com>2020-01-10 11:39:02 +0300
commit756c4016130bb63a88e2eed07740d98fa5538a00 (patch)
treedbe342f4a26ec2a8afd9dbf8365df4613701dde1
parent8c7bfcfe7a7bee5e2a0ede68eb95d29450682d93 (diff)
Remove usage of get_magic_quotes_gpc method (#158)
-rw-r--r--includes/common.inc.php20
1 files changed, 0 insertions, 20 deletions
diff --git a/includes/common.inc.php b/includes/common.inc.php
index ca63814..85dfe76 100644
--- a/includes/common.inc.php
+++ b/includes/common.inc.php
@@ -3,26 +3,6 @@ require dirname(__FILE__) . '/../vendor/autoload.php';
define('PHPREDIS_ADMIN_PATH', dirname(__DIR__));
-// Undo magic quotes (both in keys and values)
-if (function_exists('get_magic_quotes_gpc') && get_magic_quotes_gpc()) {
- $process = array(&$_GET, &$_POST);
-
- foreach ($process as $key => $val) {
- foreach ($val as $k => $v) {
- unset($process[$key][$k]);
-
- if (is_array($v)) {
- $process[$key][stripslashes($k)] = $v;
- $process[] = &$process[$key][stripslashes($k)];
- } else {
- $process[$key][stripslashes($k)] = stripslashes($v);
- }
- }
- }
-
- unset($process);
-}
-