1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 11:05:55 +00:00

validate_csrf: remove warning

This commit is contained in:
Andrew Dolgov
2021-02-12 21:21:23 +03:00
parent f2d3cba231
commit 119a4226d8

View File

@@ -310,7 +310,7 @@
}
function validate_csrf($csrf_token) {
return isset($csrf_token) && hash_equals($_SESSION['csrf_token'], $csrf_token);
return isset($csrf_token) && hash_equals($_SESSION['csrf_token'] ?? "", $csrf_token);
}
function truncate_string($str, $max_len, $suffix = '…') {