From fd1b516b7642dacab2e81b58f1d2be5bef3d4528 Mon Sep 17 00:00:00 2001 From: kink Date: Fri, 13 Sep 2002 17:23:30 +0000 Subject: [PATCH] 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 --- src/redirect.php | 3 +++ 1 file changed, 3 insertions(+) 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); -- 2.25.1