X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Foptions_highlight.php;h=55e1a32d9f98eee47f6b563f8a0e66109114d4e9;hb=f19ee57dce51c639fbfb2c2e3a29df74504ac9ca;hp=7bfeb3a3df3258a7a2c975ba51ee3201424700b1;hpb=30460a05016c7e066ad7b28df7788539e4054a99;p=squirrelmail.git diff --git a/src/options_highlight.php b/src/options_highlight.php index 7bfeb3a3..55e1a32d 100644 --- a/src/options_highlight.php +++ b/src/options_highlight.php @@ -5,7 +5,7 @@ * * Displays message highlighting options * - * @copyright 1999-2009 The SquirrelMail Project Team + * @copyright 1999-2012 The SquirrelMail Project Team * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @version $Id$ * @package squirrelmail @@ -32,7 +32,7 @@ sqGetGlobalVar('newcolor_input', $newcolor_input); sqGetGlobalVar('color_type', $color_type); sqGetGlobalVar('match_type', $match_type); sqGetGlobalVar('value', $value); -sqgetGlobalVar('smtoken', $submitted_token, SQ_POST, ''); +sqgetGlobalVar('smtoken', $submitted_token, SQ_FORM, ''); /* end of get globals */ @@ -151,11 +151,13 @@ foreach($message_highlight_list as $index=>$rule) { $oTemplate->assign('current_rules', $rules); +$token = sm_generate_security_token(); + $oTemplate->assign('add_rule', 'options_highlight.php?action=add'); $oTemplate->assign('edit_rule', 'options_highlight.php?action=edit&theid='); -$oTemplate->assign('delete_rule', 'options_highlight.php?action=delete&theid='); -$oTemplate->assign('move_up', 'options_highlight.php?action=up&theid='); -$oTemplate->assign('move_down', 'options_highlight.php?action=down&theid='); +$oTemplate->assign('delete_rule', 'options_highlight.php?action=delete&smtoken=' . $token . '&theid='); +$oTemplate->assign('move_up', 'options_highlight.php?action=up&smtoken=' . $token . '&theid='); +$oTemplate->assign('move_down', 'options_highlight.php?action=down&smtoken=' . $token . '&theid='); $oTemplate->display('options_highlight_list.tpl');