From 613748b75a9cd1f1b1939ab05c22e63407237984 Mon Sep 17 00:00:00 2001 From: cash Date: Sun, 22 Aug 2010 16:22:19 +0000 Subject: Merged [6600],[6601],[6605],[6606],[6607],[6608],[6611] from 1.7 branch into trunk git-svn-id: http://code.elgg.org/elgg/trunk@6843 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/input.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'engine/lib/input.php') diff --git a/engine/lib/input.php b/engine/lib/input.php index 2ddc0e643..7e650c8de 100644 --- a/engine/lib/input.php +++ b/engine/lib/input.php @@ -65,10 +65,7 @@ function set_input($variable, $value) { } if (is_array($value)) { - foreach ($value as $key => $val) { - $value[$key] = trim($val); - } - + array_walk_recursive($value, create_function('&$v, $k', '$v = trim($v);')); $CONFIG->input[trim($variable)] = $value; } else { $CONFIG->input[trim($variable)] = trim($value); -- cgit v1.2.3