diff options
-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);
}
|