summaryrefslogtreecommitdiff
path: root/include/sessions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2017-07-13 08:57:07 +0300
committerAndrew Dolgov <[email protected]>2017-07-13 08:57:07 +0300
commitb465c28ee038f93440ebb13ebfbbf529fd8149c7 (patch)
tree1a043aa57f1377826bb479580d7a4bf104cee44a /include/sessions.php
parentbe61f1c45c45376a32cb72e2500a4bd633c83e17 (diff)
sessions: clip max expiry value to a 32bit integer
Diffstat (limited to 'include/sessions.php')
-rw-r--r--include/sessions.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sessions.php b/include/sessions.php
index d0532a014..adc973fe7 100644
--- a/include/sessions.php
+++ b/include/sessions.php
@@ -9,7 +9,7 @@
require_once "lib/gettext/gettext.inc";
require_once "version.php";
- $session_expire = max(SESSION_COOKIE_LIFETIME, 86400);
+ $session_expire = max(SESSION_COOKIE_LIFETIME, 86400) & 0xFFFFFFFF; // clip to 32 bit
$session_name = (!defined('TTRSS_SESSION_NAME')) ? "ttrss_sid" : TTRSS_SESSION_NAME;
if (@$_SERVER['HTTPS'] == "on") {