From: pdontthink Date: Thu, 3 Apr 2003 11:40:47 +0000 (+0000) Subject: Added detection of password fields in generic checkForm javascript function X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=commitdiff_plain;h=5ca05f193c50a532a031fb76cd77aecbd279199d;hp=c97645d022559fefda97f7c0f054c8ecbe69c056;ds=sidebyside Added detection of password fields in generic checkForm javascript function git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@4715 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/functions/page_header.php b/functions/page_header.php index 98191e47..bf731b50 100644 --- a/functions/page_header.php +++ b/functions/page_header.php @@ -173,7 +173,8 @@ function displayPageHeader($color, $mailbox, $xtra='', $session=false) { "var e = document.forms[i].elements.length;\n". "var j = 0;\n". "while( pos == -1 && j < e ) {\n". - "if ( document.forms[i].elements[j].type == 'text' ) {\n". + "if ( document.forms[i].elements[j].type == 'text' " . + "|| document.forms[i].elements[j].type == 'password' ) {\n". "pos = j;\n". "}\n". "j++;\n".