mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 05:25:56 +00:00
more php8 fixes mostly related to login
This commit is contained in:
@@ -46,7 +46,7 @@
|
||||
}
|
||||
$pdo = Db::pdo();
|
||||
|
||||
if ($_SESSION["uid"]) {
|
||||
if (!empty($_SESSION["uid"])) {
|
||||
|
||||
if (!defined('_SESSION_SKIP_UA_CHECKS') && $_SESSION["user_agent"] != sha1($_SERVER['HTTP_USER_AGENT'])) {
|
||||
$_SESSION["login_error_msg"] = __("Session failed to validate (UA changed).");
|
||||
|
||||
Reference in New Issue
Block a user