Sfoglia il codice sorgente

adding onsubmit option in order to avoid warning on SSL enabled sites.
Thanks to Felix Egli for suggestion and patch.

tokul 21 anni fa
parent
commit
ac8dd3fc7d
1 ha cambiato i file con 4 aggiunte e 1 eliminazioni
  1. 4 1
      src/read_body.php

+ 4 - 1
src/read_body.php

@@ -608,17 +608,20 @@ function formatMenubar($aMailbox, $passed_id, $passed_ent_id, $message, $removed
     $target = '';
     $target = '';
     $on_click='';
     $on_click='';
     $method='method="post" ';
     $method='method="post" ';
+    $onsubmit='';
     if ($compose_new_win == '1') {
     if ($compose_new_win == '1') {
         if ( $javascript_on ) {
         if ( $javascript_on ) {
           $on_click=' onclick="comp_in_new_form(\''.$comp_uri.'\', this, this.form)"';
           $on_click=' onclick="comp_in_new_form(\''.$comp_uri.'\', this, this.form)"';
           $comp_uri = 'javascript:void(0)';
           $comp_uri = 'javascript:void(0)';
           $method='method="get" ';
           $method='method="get" ';
+          $onsubmit = 'onsubmit="return false" ';
         } else {
         } else {
           $target = 'target="_blank"';
           $target = 'target="_blank"';
         }
         }
     }
     }
 
 
-    $menu_row .= "\n".'<form name="composeForm" action="'.$comp_uri.'" '.$method.$target.' style="display: inline">'."\n";
+    $menu_row .= "\n".'<form name="composeForm" action="'.$comp_uri.'" '
+              . $method.$target.$onsubmit.' style="display: inline">'."\n";
 
 
     // If Draft folder - create Resume link
     // If Draft folder - create Resume link
     if (($mailbox == $draft_folder) && ($save_as_draft)) {
     if (($mailbox == $draft_folder) && ($save_as_draft)) {