Revision: 7102
Updated Code
at July 21, 2008 14:55 by section31
Updated Code
if (get_magic_quotes_gpc()) {
function _strip_quotes(&$var) {
if (is_array($var)) {
array_walk($var, '_strip_quotes');
} else {
$var = stripslashes($var);
}
}
foreach (array('GET','POST','COOKIE') as $v) {
if (!empty(${"_".$v})) { array_walk(${"_".$v}, '_strip_quotes'); }
}
}
Revision: 7101
Updated Code
at July 6, 2008 02:49 by section31
Updated Code
if (get_magic_quotes_gpc()) {
function _strip_quotes(&$var) {
if (is_array($var) {
array_walk($var, '_strip_quotes');
} else {
$var = stripslashes($var);
}
}
foreach (array('GET','POST','COOKIE') as $v) {
if (!empty(${"_".$v})) { array_walk(${"_".$v}, '_strip_quotes'); }
}
}
Revision: 7100
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at July 6, 2008 02:46 by section31
Initial Code
if (get_magic_quotes_gpc()) {
function strip_quotes(&$var) {
if (is_array($var) {
array_walk($var, 'strip_quotes');
} else {
$var = stripslashes($var);
}
}
// Handle GPC
foreach (array('GET','POST','COOKIE') as $v) {
if (!empty(${"_".$v})) {
array_walk(${"_".$v}, 'strip_quotes');
}
}
}
Initial URL
Initial Description
Initial Title
Remove Magic Quotes
Initial Tags
Initial Language
PHP