You are here

function _fix_gpc_magic in Drupal 5

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