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:
parent
3be4397706
commit
5d0bd93eb3
@ -40,9 +40,10 @@ class Action { // lawsuit
|
|||||||
}
|
}
|
||||||
|
|
||||||
function handle($argarray) {
|
function handle($argarray) {
|
||||||
|
$strip = get_magic_quotes_gpc();
|
||||||
$this->args = array();
|
$this->args = array();
|
||||||
foreach ($argarray as $k => $v) {
|
foreach ($argarray as $k => $v) {
|
||||||
$this->args[$k] = $v;
|
$this->args[$k] = ($strip) ? stripslashes($v) : $v;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user