diff options
author | Andrew Dolgov <[email protected]> | 2019-04-11 16:15:55 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2019-04-11 16:15:55 +0300 |
commit | 6fbf349155ff92c643d835246016a76351417cf1 (patch) | |
tree | 38a257dca84e98c04132311b542ee645203d388b | |
parent | c7ad4ad2d43b15f0b3ed60c70c16e0867fc5a4cb (diff) |
add hidden _SKIP_SESSION_UA_CHECKS tunable
-rw-r--r-- | include/sessions.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sessions.php b/include/sessions.php index c27eb98b0..ca9f169d8 100644 --- a/include/sessions.php +++ b/include/sessions.php @@ -49,7 +49,7 @@ if ($_SESSION["uid"]) { - if ($_SESSION["user_agent"] != sha1($_SERVER['HTTP_USER_AGENT'])) { + if (!defined('_SESSION_SKIP_UA_CHECKS') && $_SESSION["user_agent"] != sha1($_SERVER['HTTP_USER_AGENT'])) { $_SESSION["login_error_msg"] = __("Session failed to validate (UA changed)."); return false; } |