Remove redundant spaces around the login.. this prevents prefs files like "thijs...
authorkink <kink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 13 Sep 2002 17:23:30 +0000 (17:23 +0000)
committerkink <kink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 13 Sep 2002 17:23:30 +0000 (17:23 +0000)
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

index 91addea8dc801ee87f716c4335e77b41b0fa9023..eb23e0bfe9ee5ad005597ebf1c16b0cb2c00a491 100644 (file)
@@ -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);