Skip to content

Commit 756c401

Browse files
mvorisekerikdubbelboer
authored andcommitted
Remove usage of get_magic_quotes_gpc method (#158)
1 parent 8c7bfcf commit 756c401

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

includes/common.inc.php

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,6 @@
33

44
define('PHPREDIS_ADMIN_PATH', dirname(__DIR__));
55

6-
// Undo magic quotes (both in keys and values)
7-
if (function_exists('get_magic_quotes_gpc') && get_magic_quotes_gpc()) {
8-
$process = array(&$_GET, &$_POST);
9-
10-
foreach ($process as $key => $val) {
11-
foreach ($val as $k => $v) {
12-
unset($process[$key][$k]);
13-
14-
if (is_array($v)) {
15-
$process[$key][stripslashes($k)] = $v;
16-
$process[] = &$process[$key][stripslashes($k)];
17-
} else {
18-
$process[$key][stripslashes($k)] = stripslashes($v);
19-
}
20-
}
21-
}
22-
23-
unset($process);
24-
}
25-
266

277

288

0 commit comments

Comments
 (0)