mirror of
https://github.com/php/web-wiki.git
synced 2025-07-25 16:40:44 +00:00
Fix logout missing csrf token
See https://forum.dokuwiki.org/d/20248-security-token-did-not-match-possible-csrf-attack-cannot-log-out/8
This commit is contained in:
@ -33,7 +33,7 @@ if (empty($_SERVER['REMOTE_USER'])) {
|
||||
$LINKS = array(
|
||||
array("href" => "?do=edit", "text" => "Edit this page",),
|
||||
array("href" => "?do=admin", "text" => "Admin",),
|
||||
array("href" => "?do=logout", "text" => "Logout",),
|
||||
array("href" => "?do=logout§ok=" . urlencode(getSecurityToken()), "text" => "Logout",),
|
||||
array("href" => "?do=profile", "text" => $name,),
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user