summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-05-22 06:36:30 -0400
committerEvan Prodromou <evan@prodromou.name>2008-05-22 06:36:30 -0400
commit5d0bd93eb3e958b41113afdce85643a82a1f5bb3 (patch)
tree9f4d385fe016b82bd6a3cdb4a3ced128ed5eda85
parent3be439770617f64aec94a0ddebe3b5580ee3b97a (diff)
strip slashes
Check if automated slash-adder is on, and if so, strip out automated slashes. darcs-hash:20080522103630-84dde-4f6d10b6e6efff91a53c4af735040995ae947211.gz
-rw-r--r--lib/action.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/action.php b/lib/action.php
index 9b7988a19..c346c7513 100644
--- a/lib/action.php
+++ b/lib/action.php
@@ -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;
}
}
}