Closed jheim2 closed 1 year ago
Confirmed still an issue on Dokuwiki 2022-07-31a "Igor"
Users cannot log out, and receive the following error:
Security Token did not match. Possible CSRF attack.
Related: https://github.com/splitbrain/dokuwiki/issues/3766 Related: https://forum.dokuwiki.org/d/20248-security-token-did-not-match-possible-csrf-attack-cannot-log-out/7 Caused by: https://github.com/splitbrain/dokuwiki/commit/6a25531dc896167cc6e598fa780ee6840559aeea
array("do" => "logout")
should read array("do" => "logout", "sectok" => getSecurityToken())
below:
https://github.com/arsava/dokuwiki-template-vector/blob/61982192220ff1fcc6f7930ba5feb297b5c2111a/main.php#L684
Thanks for the PR @jheim2 - hopefully this can be approved for future releases.
adding security token to make logout work again.