Fix XSS holes in generic options inputs, XSS hole in the SquirrelSpell plugin, and...
[squirrelmail.git] / plugins / squirrelspell / js / crypto_settings.js
index 604a7cf29a8f8b0f805ed0eeb1de6333d6e676b5..5c54d9ab01d45a4d7f139cb04b4f951e91877874 100644 (file)
@@ -1,12 +1,12 @@
 /**
  * crypto_settings.js
- * -------------------
- * Some client-side checks. Nothing fancy.
  *
- * $Id$
+ * Some client-side checks. Nothing fancy.
  *
- * @author Konstantin Riabitsev <icon@duke.edu> ($Author$)
- * @version $Date$
+ * @author Konstantin Riabitsev <icon at duke.edu>
+ * @copyright 2001-2011 The SquirrelMail Project Team
+ * @license http://opensource.org/licenses/gpl-license.php GNU Public License
+ * @version $Id$
  */
 
 /**
@@ -18,9 +18,9 @@ function checkMe(){
     alert (ui_makesel);
     return false;
   }
-  if (document.forms[0].action.value=="encrypt")
+  if (document.forms[0].encaction.value=="encrypt")
     cmsg=ui_encrypt;
-  if (document.forms[0].action.value=="decrypt")
+  if (document.forms[0].encaction.value=="decrypt")
     cmsg=ui_decrypt;
   return confirm(cmsg);
 }