mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 17:25:55 +00:00
fix OTP QR code not displayed because of CSRF token passed as a query
parameter use type-strict comparison when validating CSRF token on the backend
This commit is contained in:
@@ -680,7 +680,7 @@
|
||||
}
|
||||
|
||||
function validate_csrf($csrf_token) {
|
||||
return $csrf_token == $_SESSION['csrf_token'];
|
||||
return $csrf_token === $_SESSION['csrf_token'];
|
||||
}
|
||||
|
||||
function load_user_plugins($owner_uid, $pluginhost = false) {
|
||||
|
||||
Reference in New Issue
Block a user