Ver código fonte

replace reserved word 'action' with 'encaction'

Thijs Kinkhorst 18 anos atrás
pai
commit
1193c5b0de

+ 4 - 4
plugins/squirrelspell/js/crypto_settings.js

@@ -4,7 +4,7 @@
  * Some client-side checks. Nothing fancy.
  *
  * @author Konstantin Riabitsev <icon at duke.edu>
- * @copyright &copy; 2001-2006 The SquirrelMail Project Team
+ * @copyright &copy; 2001-2007 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);
-}
+}

+ 1 - 1
plugins/squirrelspell/modules/crypto.mod

@@ -23,7 +23,7 @@ global $SQSPELL_CRYPTO;
 
 $langs=sqspell_getSettings();
 
-if (! sqgetGlobalVar('action', $crypt_action, SQ_POST)) {
+if (! sqgetGlobalVar('encaction', $crypt_action, SQ_POST)) {
     $crypt_action = 'noaction';
 }
 

+ 2 - 2
plugins/squirrelspell/modules/enc_setup.mod

@@ -60,7 +60,7 @@ if ($crypted){
         . '</p>'
         . '<form method="post" onsubmit="return checkMe()">'
         . '<input type="hidden" name="MOD" value="crypto" />'
-        . '<p align="center"><input type="checkbox" name="action" '
+        . '<p align="center"><input type="checkbox" name="encaction" '
         . 'value="decrypt" id="action_decrypt" /> <label for="action_decrypt">'
         . _("Please decrypt my personal dictionary and store it in a clear-text format." )
         . '</label></p>'
@@ -85,7 +85,7 @@ if ($crypted){
         . '</p>'
         . '<form method="post" onsubmit="return checkMe()">'
         . '<input type="hidden" name="MOD" value="crypto" />'
-        . '<p align="center"><input type="checkbox" name="action" '
+        . '<p align="center"><input type="checkbox" name="encaction" '
         . 'value="encrypt" id="action_encrypt" /> <label for="action_encrypt">'
         . _("Please encrypt my personal dictionary and store it in an encrypted format.")
         . '</label></p>'