From: kink Date: Fri, 13 Sep 2002 17:23:30 +0000 (+0000) Subject: Remove redundant spaces around the login.. this prevents prefs files like "thijs... X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=fd1b516b7642dacab2e81b58f1d2be5bef3d4528;p=squirrelmail.git Remove redundant spaces around the login.. this prevents prefs files like "thijs .pref" to be created. Can't think what would be broken by this but please report/fix if so. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3657 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/src/redirect.php b/src/redirect.php index 91addea8..eb23e0bf 100644 --- a/src/redirect.php +++ b/src/redirect.php @@ -77,6 +77,9 @@ if (!session_is_registered('user_is_logged_in')) { $key = OneTimePadEncrypt($secretkey, $onetimepad); session_register('onetimepad'); + /* remove redundant spaces */ + $login_username = trim($login_username); + /* Verify that username and password are correct. */ if ($force_username_lowercase) { $login_username = strtolower($login_username);