From 887fba6379436d16f88a79bdbd2811b5af3532b4 Mon Sep 17 00:00:00 2001 From: SecretR Date: Sat, 1 Dec 2012 17:52:06 +0200 Subject: [PATCH] trim all attributes of form elements --- e107_handlers/form_handler.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/e107_handlers/form_handler.php b/e107_handlers/form_handler.php index 68ffa352f..913c2ff49 100644 --- a/e107_handlers/form_handler.php +++ b/e107_handlers/form_handler.php @@ -1190,7 +1190,9 @@ class e_form // foreach ($options as $option => $optval) { - switch ($option) { + $optval = trim($optval); + switch ($option) + { case 'id': $ret .= $this->_format_id($optval, $name, $value);