From ca41536858d67f1b0a7e1f05ab6db35c4d4cac78 Mon Sep 17 00:00:00 2001 From: marcus Date: Sun, 1 Mar 2009 14:19:55 +0000 Subject: Closes #828: Array input values now trimmed individually. git-svn-id: https://code.elgg.org/elgg/trunk@3007 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/input.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'engine') diff --git a/engine/lib/input.php b/engine/lib/input.php index dd0480d9f..4d6d36511 100644 --- a/engine/lib/input.php +++ b/engine/lib/input.php @@ -59,7 +59,13 @@ global $CONFIG; if (!isset($CONFIG->input)) - $CONFIG->input = array(); + $CONFIG->input = array(); + + if (is_array($value)) + { + foreach ($value as $key => $val) + $value[$key] = trim($val); + } $CONFIG->input[trim($variable)] = trim($value); } -- cgit v1.2.3