Fixed problem where $username was being overwritten with the cookie's value
authorfidian <fidian@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 26 Dec 2000 16:58:01 +0000 (16:58 +0000)
committerfidian <fidian@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 26 Dec 2000 16:58:01 +0000 (16:58 +0000)
in Opera.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@898 7612ce4b-ef26-0410-bec9-ea0150e637f0

src/login.php

index 6e2119b..b8beff4 100644 (file)
@@ -27,8 +27,8 @@
    ereg ("(^.*/)[^/]+/[^/]+$", $PHP_SELF, $regs);
    $base_uri = $regs[1];
 
-   setcookie("username", "", 0, $base_uri);
-   setcookie("key", "", 0, $base_uri);
+   setcookie("username", '', 0, $base_uri);
+   setcookie("key", '', 0, $base_uri);
    setcookie("logged_in", 0, 0, $base_uri);
 
    // In case the last session was not terminated properly, make sure
@@ -43,7 +43,7 @@
    echo "<BODY TEXT=000000 BGCOLOR=#FFFFFF LINK=0000CC VLINK=0000CC ALINK=0000CC>\n";
    echo "<FORM ACTION=\"redirect.php\" METHOD=\"POST\" NAME=f>\n";
    
-   $username_form_name = 'username';
+   $username_form_name = 'login_username';
    $password_form_name = 'secretkey';
    do_hook('login_top');