_fix_gpc_magic

5 common.inc _fix_gpc_magic(&$item)
6 common.inc _fix_gpc_magic(&$item)
7 common.inc _fix_gpc_magic(&$item)
8 common.inc _fix_gpc_magic(&$item)

Strips slashes from a string or array of strings.

Callback for array_walk() within fix_gpx_magic().

Parameters

$item: An individual string or array of strings from superglobals.

1 string reference to '_fix_gpc_magic'

File

includes/common.inc, line 1041
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);
  }
}
Login or register to post comments