Skip to content

Commit 58d3647

Browse files
committed
Security: fix check on security token when accepting the cookie warning
1 parent c88d336 commit 58d3647

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main/inc/lib/template.lib.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1361,11 +1361,11 @@ public function enableCookieUsageWarning()
13611361
</button>
13621362
</div>'
13631363
);
1364+
$form->protect();
13641365

13651366
if ($form->validate()) {
13661367
api_set_site_use_cookie_warning_cookie();
13671368
} else {
1368-
$form->protect();
13691369
$this->assign('frmDisplayCookieUsageWarning', $form->returnForm());
13701370
}
13711371
}

0 commit comments

Comments
 (0)