update Sat Mar 6 18:37:00 PST 2010
[pkgsrc.git] / mail / squirrelmail / patches / patch-cb
1 $NetBSD: patch-cb,v 1.1 2010/03/04 16:00:37 taca Exp $
2
3 --- plugins/newmail/newmail_opt.php.orig        2009-04-16 07:00:49.000000000 +0900
4 +++ plugins/newmail/newmail_opt.php
5 @@ -71,6 +71,7 @@ echo '</td></tr>' .
6              html_tag( 'td', '', 'center', $color[4] ) . "\n" . '<hr style="width: 25%; height: 1px;" />' . "\n";
7  
8  echo '<form action="'.sqm_baseuri().'src/options.php" method="post">' . "\n" .
9 +        '<input type="hidden" name="smtoken" value="' . sm_generate_security_token() . '">' . "\n" .
10          html_tag( 'table', '', '', '', 'width="100%" cellpadding="5" cellspacing="0" border="0"' ) . "\n";
11  
12  // Option: media_allbox
13 @@ -182,6 +183,7 @@ echo html_tag( 'tr', "\n" .
14          html_tag( 'td',
15              '<input type="hidden" name="optmode" value="submit" />' .
16              '<input type="hidden" name="optpage" value="newmail" />' .
17 +               '<input type="hidden" name="smtoken" value="' . sm_generate_security_token() . '" />' .
18              '<input type="submit" value="' . _("Submit") . '" name="submit_newmail" />',
19          'left' )
20       ) . "\n";