From 5d0bd93eb3e958b41113afdce85643a82a1f5bb3 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Thu, 22 May 2008 06:36:30 -0400 Subject: [PATCH] strip slashes Check if automated slash-adder is on, and if so, strip out automated slashes. darcs-hash:20080522103630-84dde-4f6d10b6e6efff91a53c4af735040995ae947211.gz --- lib/action.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/action.php b/lib/action.php index 9b7988a190..c346c75131 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; } } }