1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-09 00:55:23 +02:00

[ticket/17091] Ensure session length is int

PHPBB3-17091
This commit is contained in:
Marc Alexander 2023-01-16 16:55:16 +01:00
parent e091adcc9c
commit 8ebb64a92a
No known key found for this signature in database
GPG Key ID: 50E0D2423696F995

View File

@ -420,7 +420,7 @@ class session
// Else check the autologin length... and also removing those having autologin enabled but no longer allowed board-wide.
if (!$this->data['session_autologin'])
{
if ($this->data['session_time'] < $this->time_now - ($config['session_length'] + 60))
if ($this->data['session_time'] < $this->time_now - ((int) $config['session_length'] + 60))
{
$session_expired = true;
}