Kaynağa Gözat

Form names = good

pdontthink 21 yıl önce
ebeveyn
işleme
0f3dfee94f
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 2 2
      src/read_body.php

+ 2 - 2
src/read_body.php

@@ -643,7 +643,7 @@ function formatMenubar($aMailbox, $passed_id, $passed_ent_id, $message, $removed
     if ( in_array('\\deleted', $aMailbox['PERMANENTFLAGS'],true) ) {
     if ( in_array('\\deleted', $aMailbox['PERMANENTFLAGS'],true) ) {
     // Form for deletion. Form is handled by the originating display in $where. This is right_main.php or search.php
     // Form for deletion. Form is handled by the originating display in $where. This is right_main.php or search.php
         $delete_url = $base_uri . "src/$where";
         $delete_url = $base_uri . "src/$where";
-        $menu_row .= '<form action="'.$delete_url.'" method="post" style="display: inline">';
+        $menu_row .= '<form name="deleteMessageForm" action="'.$delete_url.'" method="post" style="display: inline">';
 
 
         if (!(isset($passed_ent_id) && $passed_ent_id)) {
         if (!(isset($passed_ent_id) && $passed_ent_id)) {
             $menu_row .= addHidden('mailbox', $aMailbox['NAME']);
             $menu_row .= addHidden('mailbox', $aMailbox['NAME']);
@@ -662,7 +662,7 @@ function formatMenubar($aMailbox, $passed_id, $passed_ent_id, $message, $removed
     if ( !(isset($passed_ent_id) && $passed_ent_id) &&
     if ( !(isset($passed_ent_id) && $passed_ent_id) &&
         in_array('\\deleted', $aMailbox['PERMANENTFLAGS'],true) ) {
         in_array('\\deleted', $aMailbox['PERMANENTFLAGS'],true) ) {
 
 
-        $menu_row .= '<form action="'.$base_uri.'src/'.$where.'?'.'" method="post" style="display: inline">'.
+        $menu_row .= '<form name="moveMessageForm" action="'.$base_uri.'src/'.$where.'?'.'" method="post" style="display: inline">'.
               '<small>'.
               '<small>'.
 
 
           addHidden('mailbox',$aMailbox['NAME']) .
           addHidden('mailbox',$aMailbox['NAME']) .