diff options
author | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-03-01 14:19:55 +0000 |
---|---|---|
committer | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-03-01 14:19:55 +0000 |
commit | ca41536858d67f1b0a7e1f05ab6db35c4d4cac78 (patch) | |
tree | 31d4bec1d61816776c3016de2f9d905b9dca279b /engine/lib/input.php | |
parent | 6bd91b83d6f895b8849048cb2b4018c7b04f23bb (diff) | |
download | elgg-ca41536858d67f1b0a7e1f05ab6db35c4d4cac78.tar.gz elgg-ca41536858d67f1b0a7e1f05ab6db35c4d4cac78.tar.bz2 |
Closes #828: Array input values now trimmed individually.
git-svn-id: https://code.elgg.org/elgg/trunk@3007 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/input.php')
-rw-r--r-- | engine/lib/input.php | 8 |
1 files changed, 7 insertions, 1 deletions
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);
}
|