Skip to content
Snippets Groups Projects
Commit 58d0d072 authored by Jared Hancock's avatar Jared Hancock
Browse files

install: Ensure no leading/trailing spaces

parent 87bafef8
No related branches found
No related tags found
No related merge requests found
...@@ -60,6 +60,7 @@ class Installer extends SetupWizard { ...@@ -60,6 +60,7 @@ class Installer extends SetupWizard {
$f['dbuser'] = array('type'=>'string', 'required'=>1, 'error'=>'Username required'); $f['dbuser'] = array('type'=>'string', 'required'=>1, 'error'=>'Username required');
$f['dbpass'] = array('type'=>'string', 'required'=>1, 'error'=>'password 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']) if(!Validator::process($f,$vars,$this->errors) && !$this->errors['err'])
$this->errors['err']='Missing or invalid data - correct the errors and try again.'; $this->errors['err']='Missing or invalid data - correct the errors and try again.';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment