From bca2d025d9cd5d79463bc3621fe107d5b9f2518b Mon Sep 17 00:00:00 2001 From: jangliss Date: Wed, 22 Jun 2005 03:05:14 +0000 Subject: [PATCH] Fix #1222617. Javascript creation relied on rg=1 for forcing focus to password field if username was supplied by url arg. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@9643 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- ChangeLog | 2 ++ src/login.php | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 84c110b1..d095c98e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -376,6 +376,8 @@ Version 1.5.1 -- CVS - Some LDAP address book backend configuration options (listing controls, filtering, scope limit) are moved to 'advanced configuration' subsection. + - Javascript relied on rg=1 in the login page to force focus to + password box if username was supplied as a url arg (#1222617). Version 1.5.0 - 2 February 2004 ------------------------------- diff --git a/src/login.php b/src/login.php index 20393886..a7c22d1f 100644 --- a/src/login.php +++ b/src/login.php @@ -83,6 +83,8 @@ if($imap_auth_mech == 'login') { do_hook('login_cookie'); +$loginname_value = (sqGetGlobalVar('loginname', $loginname) ? htmlspecialchars($loginname) : ''); + /* Output the javascript onload function. */ $header = "