From dcaadada35c86ebc395ebee9fa726e315e89198f Mon Sep 17 00:00:00 2001 From: Mike Macgirvin Date: Sat, 9 Oct 2010 16:19:52 -0700 Subject: [PATCH] allow leading/trailing whitespace in passwords --- mod/settings.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mod/settings.php b/mod/settings.php index 3cfe06b8ef..cfd0df0245 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 ) {