strip slashes

Check if automated slash-adder is on, and if so, strip out automated
slashes.

darcs-hash:20080522103630-84dde-4f6d10b6e6efff91a53c4af735040995ae947211.gz
This commit is contained in:
Evan Prodromou 2008-05-22 06:36:30 -04:00
parent 3be4397706
commit 5d0bd93eb3

View File

@ -40,9 +40,10 @@ class Action { // lawsuit
}
function handle($argarray) {
$strip = get_magic_quotes_gpc();
$this->args = array();
foreach ($argarray as $k => $v) {
$this->args[$k] = $v;
$this->args[$k] = ($strip) ? stripslashes($v) : $v;
}
}
}