function fix_gpc_magic
Fixes double-escaping caused by "magic quotes" in some PHP installations.
See also
1 call to fix_gpc_magic()
- _drupal_bootstrap_full in includes/
common.inc
File
-
includes/
common.inc, line 1258
Code
function fix_gpc_magic() {
static $fixed = FALSE;
if (!$fixed && ini_get('magic_quotes_gpc')) {
array_walk($_GET, '_fix_gpc_magic');
array_walk($_POST, '_fix_gpc_magic');
array_walk($_COOKIE, '_fix_gpc_magic');
array_walk($_REQUEST, '_fix_gpc_magic');
array_walk($_FILES, '_fix_gpc_magic_files');
}
$fixed = TRUE;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.