function _fix_gpc_magic in Drupal 4
Same name and namespace in other branches
- 5 includes/common.inc \_fix_gpc_magic()
- 6 includes/common.inc \_fix_gpc_magic()
- 7 includes/common.inc \_fix_gpc_magic()
1 string reference to '_fix_gpc_magic'
- fix_gpc_magic in includes/
common.inc - Correct double-escaping problems caused by "magic quotes" in some PHP installations.
File
- includes/
common.inc, line 510 - Common functions that many Drupal modules will need to reference.
Code
function _fix_gpc_magic(&$item) {
if (is_array($item)) {
array_walk($item, '_fix_gpc_magic');
}
else {
$item = stripslashes($item);
}
}