diff --git a/setup/inc/class.installer.php b/setup/inc/class.installer.php index b43c083da79e297e22a8462b526fc9e3192040f0..d08fc34ed0f5a4b9890baf07fb0b6012e965a059 100644 --- a/setup/inc/class.installer.php +++ b/setup/inc/class.installer.php @@ -60,6 +60,7 @@ class Installer extends SetupWizard { $f['dbuser'] = array('type'=>'string', 'required'=>1, 'error'=>'Username required'); $f['dbpass'] = array('type'=>'string', 'required'=>1, 'error'=>'password required'); + $vars = array_map('trim', $vars); if(!Validator::process($f,$vars,$this->errors) && !$this->errors['err']) $this->errors['err']='Missing or invalid data - correct the errors and try again.';