Misc/Fixup
* HTTP_USER_AGENT is not guaranteed to be set
This commit is contained in:
parent
05f5b0ed34
commit
a7e9ac2cf2
1 changed files with 1 additions and 1 deletions
|
|
@ -43,7 +43,7 @@ class User
|
|||
$_SESSION['dataKey'] = Util::createHash(); // just some random numbers for identification purpose
|
||||
|
||||
self::$dataKey = $_SESSION['dataKey'];
|
||||
self::$agent = $_SERVER['HTTP_USER_AGENT'];
|
||||
self::$agent = $_SERVER['HTTP_USER_AGENT'] ?? '';
|
||||
|
||||
if (!self::$ip)
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue