1 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.

File

core/includes/common.inc, line 1323
Common functions that many Backdrop 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);
  }
}