Clear security token after using it in announcements. Prevents sending twice - refs BT#14513

pull/2573/head
Yannick Warnier 8 years ago
parent 7d72cad9eb
commit abe5fd81f2
  1. 2
      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;
}

Loading…
Cancel
Save