Browse Source

Added detection of password fields in generic checkForm javascript function

pdontthink 22 years ago
parent
commit
355bab7631
1 changed files with 2 additions and 1 deletions
  1. 2 1
      functions/page_header.php

+ 2 - 1
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".