magic_quotes_gpc (Bugs)
Is it possible, that "REQUEST" is not contained in the global array?
Hm... no idea! IMHO the better way is to do it the other way round: strip slashes if magic_quotes_gpc is enabled (which shouldn't be the case anymore).
// stripslashes on GPC if magic_quotes_gpc is enabled: 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); $_REQUEST = array_map('stripslashes_deep', $_REQUEST); }
Alex
Complete thread:
- Move the first Posting to an answer - Milo, 2010-01-17, 18:24
- Confirmed, thank you!
- Alex, 2010-01-19, 08:07
- fixed in 2.1.3 - Alex, 2010-01-26, 21:16
- fixed in 2.1.3 - Milo, 2010-01-26, 21:37
- magic_quotes_gpc - Alex, 2010-01-27, 07:45
- magic_quotes_gpc - Auge, 2010-01-27, 10:24
- fixed in 2.1.3 - D-Grund Nyheder, 2010-11-30, 17:26
- magic_quotes_gpc - Alex, 2010-01-27, 07:45
- fixed in 2.1.3 - Milo, 2010-01-26, 21:37
- Confirmed, thank you!