From abe5fd81f2957ceb718a3fc5602d72847aba2c1e Mon Sep 17 00:00:00 2001 From: Yannick Warnier Date: Wed, 20 Jun 2018 01:57:13 -0500 Subject: [PATCH] Clear security token after using it in announcements. Prevents sending twice - refs BT#14513 --- main/announcements/announcements.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main/announcements/announcements.php b/main/announcements/announcements.php index aa4e39b0b4..a48c9954a8 100755 --- a/main/announcements/announcements.php +++ b/main/announcements/announcements.php @@ -592,6 +592,7 @@ switch ($action) { 'success' ) ); + Security::clear_token(); header('Location: '.$homeUrl); exit; } @@ -641,6 +642,7 @@ switch ($action) { $sendToUsersInSession ); } + Security::clear_token(); header('Location: '.$homeUrl); exit; }