mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 00:05:56 +00:00
backend: add session validation check
This commit is contained in:
@@ -62,6 +62,11 @@
|
||||
}
|
||||
|
||||
if ($_SESSION["uid"]) {
|
||||
if (!validate_session($link)) {
|
||||
header("Content-Type: text/json");
|
||||
print json_encode(array("error" => array("code" => 6)));
|
||||
return;
|
||||
}
|
||||
load_user_plugins($link, $_SESSION["uid"]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user