From: Evan Prodromou Date: Thu, 22 May 2008 10:36:30 +0000 (-0400) Subject: strip slashes X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5d0bd93eb3e958b41113afdce85643a82a1f5bb3;p=quix0rs-gnu-social.git strip slashes Check if automated slash-adder is on, and if so, strip out automated slashes. darcs-hash:20080522103630-84dde-4f6d10b6e6efff91a53c4af735040995ae947211.gz --- 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; } } }