From b6598b4f74bf1236b24764a16e321c3dbf7d5c69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20T=C3=A4nzer?= Date: Sun, 18 Apr 2010 16:47:57 +0200 Subject: [PATCH] Add filters as in the test system MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michael Tänzer --- manager/application/controllers/LoginController.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/manager/application/controllers/LoginController.php b/manager/application/controllers/LoginController.php index 16f5c7d..08a9519 100644 --- a/manager/application/controllers/LoginController.php +++ b/manager/application/controllers/LoginController.php @@ -219,10 +219,13 @@ class LoginController extends Zend_Controller_Action $al->setDisableTranslator(false); $username = new Zend_Form_Element_Text('login_name'); $username->setRequired(true) - ->setLabel(I18n::_('User Name')); + ->setLabel(I18n::_('User Name')) + ->addFilter(new Zend_Filter_StringTrim()) + ->addFilter(new Zend_Filter_StripTags()); $password = new Zend_Form_Element_Password('login_password'); $password->setRequired(true) - ->setLabel(I18n::_('Password')); + ->setLabel(I18n::_('Password')) + ->addFilter(new Zend_Filter_StringTrim()); $submit = new Zend_Form_Element_Submit('submit'); $submit->setLabel(I18n::_('Login')); $form->addElement($username)