Skip to content

Commit

Permalink
check security token on logout. fixes #3561
Browse files Browse the repository at this point in the history
  • Loading branch information
splitbrain committed Dec 13, 2021
1 parent 22b04d8 commit 6a25531
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions inc/Action/Logout.php
Expand Up @@ -33,6 +33,8 @@ public function preProcess() {
global $ID;
global $INPUT;

if (!checkSecurityToken()) throw new ActionException();

// when logging out during an edit session, unlock the page
$lockedby = checklock($ID);
if($lockedby == $INPUT->server->str('REMOTE_USER')) {
Expand Down

0 comments on commit 6a25531

Please sign in to comment.