Same name and namespace in other branches
  1. 4.6.x includes/common.inc \_fix_gpc_magic()
  2. 4.7.x includes/common.inc \_fix_gpc_magic()
  3. 6.x includes/common.inc \_fix_gpc_magic()
  4. 7.x 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 604
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);
  }
}