From: jangliss Date: Wed, 22 Jun 2005 03:05:14 +0000 (+0000) Subject: Fix #1222617. Javascript creation relied on rg=1 for forcing focus to X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=bca2d025d9cd5d79463bc3621fe107d5b9f2518b;p=squirrelmail.git 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 --- 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 = "