mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 13:25:54 +00:00
public/logout: require valid CSRF token
This commit is contained in:
@@ -283,8 +283,10 @@ class Handler_Public extends Handler {
|
||||
}
|
||||
|
||||
function logout() {
|
||||
logout_user();
|
||||
header("Location: index.php");
|
||||
if ($_POST["csrf_token"] == $_SESSION["csrf_token"]) {
|
||||
logout_user();
|
||||
header("Location: index.php");
|
||||
}
|
||||
}
|
||||
|
||||
function share() {
|
||||
|
||||
Reference in New Issue
Block a user