From 5ca05f193c50a532a031fb76cd77aecbd279199d Mon Sep 17 00:00:00 2001 From: pdontthink Date: Thu, 3 Apr 2003 11:40:47 +0000 Subject: [PATCH] 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 --- functions/page_header.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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". -- 2.25.1