]> git.mxchange.org Git - friendica.git/commitdiff
allow leading/trailing whitespace in passwords
authorMike Macgirvin <mike@macgirvin.com>
Sat, 9 Oct 2010 23:19:52 +0000 (16:19 -0700)
committerMike Macgirvin <mike@macgirvin.com>
Sat, 9 Oct 2010 23:19:52 +0000 (16:19 -0700)
mod/settings.php

index 3cfe06b8ef9fbf1389ae2db28f30472509c85244..cfd0df0245f6dda227ed3857470408939b1db482 100644 (file)
@@ -21,8 +21,8 @@ function settings_post(&$a) {
        }
        if((x($_POST,'npassword')) || (x($_POST,'confirm'))) {
 
-               $newpass = trim($_POST['npassword']);
-               $confirm = trim($_POST['confirm']);
+               $newpass = $_POST['npassword'];
+               $confirm = $_POST['confirm'];
 
                $err = false;
                if($newpass != $confirm ) {