mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 08:35:55 +00:00
don't try to call hash_equals() on unset user token
This commit is contained in:
@@ -679,7 +679,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function validate_csrf($csrf_token) {
|
function validate_csrf($csrf_token) {
|
||||||
return hash_equals($_SESSION['csrf_token'], $csrf_token);
|
return isset($csrf_token) && hash_equals($_SESSION['csrf_token'], $csrf_token);
|
||||||
}
|
}
|
||||||
|
|
||||||
function load_user_plugins($owner_uid, $pluginhost = false) {
|
function load_user_plugins($owner_uid, $pluginhost = false) {
|
||||||
|
|||||||
Reference in New Issue
Block a user