strip slashes if needed

This commit is contained in:
Lars Kneschke 2006-08-23 13:50:27 +00:00
parent 74b9b2c9fa
commit f45b9edc35

View File

@ -38,6 +38,18 @@
$argList = func_get_args();
$arg0 = array_shift($argList);
if(get_magic_quotes_gpc()) {
foreach($argList as $key => $value) {
if(is_array($value)) {
foreach($argList as $key1 => $value1) {
$argList[$key][$key1] = stripslashes($value1);
}
} else {
$argList[$key] = stripslashes($value);
}
}
}
list($appName, $className, $functionName) = explode('.',$arg0);
if(substr($className,0,4) != 'ajax' && $arg0 != 'etemplate.etemplate.process_exec' && substr($functionName,0,4) != 'ajax')