diff options
author | Mike Macgirvin <mike@macgirvin.com> | 2010-10-09 16:19:52 -0700 |
---|---|---|
committer | Mike Macgirvin <mike@macgirvin.com> | 2010-10-09 16:19:52 -0700 |
commit | dcaadada35c86ebc395ebee9fa726e315e89198f (patch) | |
tree | b2e98975d944f7dcb04076374ecaf39b535cbc6e /mod/settings.php | |
parent | 006ca54f92c6e3d9a48cca94da494c6a476b91e0 (diff) | |
download | volse-hubzilla-dcaadada35c86ebc395ebee9fa726e315e89198f.tar.gz volse-hubzilla-dcaadada35c86ebc395ebee9fa726e315e89198f.tar.bz2 volse-hubzilla-dcaadada35c86ebc395ebee9fa726e315e89198f.zip |
allow leading/trailing whitespace in passwords
Diffstat (limited to 'mod/settings.php')
-rw-r--r-- | mod/settings.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/settings.php b/mod/settings.php index 3cfe06b8e..cfd0df024 100644 --- a/mod/settings.php +++ b/mod/settings.php @@ -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 ) { |