Skip to content

Commit

Permalink
check CSRF token in draftdel action. fixes #3563
Browse files Browse the repository at this point in the history
  • Loading branch information
splitbrain committed Dec 14, 2021
1 parent b0265d2 commit e669992
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/Action/Draftdel.php
Expand Up @@ -28,7 +28,7 @@ public function minimumPermission() {
public function preProcess() {
global $INFO, $ID;
$draft = new \dokuwiki\Draft($ID, $INFO['client']);
if ($draft->isDraftAvailable()) {
if ($draft->isDraftAvailable() && checkSecurityToken()) {
$draft->deleteDraft();
}

Expand Down

0 comments on commit e669992

Please sign in to comment.