Prechádzať zdrojové kódy

Fix for security token missing in newmail plugin (#2919418).

jangliss 15 rokov pred
rodič
commit
fe144bc255
2 zmenil súbory, kde vykonal 2 pridanie a 0 odobranie
  1. 1 0
      doc/ChangeLog
  2. 1 0
      plugins/newmail/newmail_opt.php

+ 1 - 0
doc/ChangeLog

@@ -325,6 +325,7 @@ Version 1.5.2 - SVN
   - Implemented page referal verification mechanism. (Secunia Advisory SA34627)
   - Implemented security token system. (Secunia Advisory SA34627)
   - Fix issue with multi-part related messages not showing all attachments (#2830140).
+  - Fix for security token missing in newmail plugin (#2919418).
 
 Version 1.5.1 (branched on 2006-02-12)
 --------------------------------------

+ 1 - 0
plugins/newmail/newmail_opt.php

@@ -227,6 +227,7 @@ echo html_tag( 'tr', "\n" .
         html_tag( 'td',
             '<input type="hidden" name="optmode" value="submit" />' .
             '<input type="hidden" name="optpage" value="newmail" />' .
+        	'<input type="hidden" name="smtoken" value="' . sm_generate_security_token() . '" />' .
             '<input type="submit" value="' . _("Submit") . '" name="submit_newmail" />',
         'left' )
      ) . "\n";