diff options
author | redmatrix <git@macgirvin.com> | 2016-07-11 13:27:44 -0700 |
---|---|---|
committer | redmatrix <git@macgirvin.com> | 2016-07-11 13:27:44 -0700 |
commit | fb36561a6841c165dc8644a61c4c37a771461e2b (patch) | |
tree | 3ddfe2ac592b42248c8cd0f14f29063bb79a0859 | |
parent | 67c60229ca663135e8de5b99b27b0838fa6c205a (diff) | |
download | volse-hubzilla-fb36561a6841c165dc8644a61c4c37a771461e2b.tar.gz volse-hubzilla-fb36561a6841c165dc8644a61c4c37a771461e2b.tar.bz2 volse-hubzilla-fb36561a6841c165dc8644a61c4c37a771461e2b.zip |
force non-null sess_data
-rw-r--r-- | Zotlabs/Web/SessionHandler.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Zotlabs/Web/SessionHandler.php b/Zotlabs/Web/SessionHandler.php index 6e7333b4b..93b27a7e8 100644 --- a/Zotlabs/Web/SessionHandler.php +++ b/Zotlabs/Web/SessionHandler.php @@ -24,7 +24,8 @@ class SessionHandler implements \SessionHandlerInterface { return $r[0]['sess_data']; } else { - q("INSERT INTO `session` (sid, expire) values ('%s', '%s')", + q("INSERT INTO `session` (sess_data, sid, expire) values ('%s', '%s', '%s')", + dbesc(''), dbesc($id), dbesc(time() + 300) ); |