From 4248fb83eec4182e56b25d47ac282c1c0be8193b Mon Sep 17 00:00:00 2001 From: Morton Jonuschat <m.jonuschat@mojocode.de> Date: Mon, 20 Jul 2015 22:16:17 +0200 Subject: [PATCH] [BUGFIX] Initialize new session with empty data field Initialize the ses_data key with an empty string when creating a new session record to avoid problems with active MySQL strict mode. Resolves: #52358 Releases: master Change-Id: Ib432812797015511aa1b1230eec9d0cc4d391c74 Reviewed-on: http://review.typo3.org/41758 Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl> Tested-by: Wouter Wolters <typo3@wouterwolters.nl> Reviewed-by: Stefan Neufeind <typo3.neufeind@speedpartner.de> Tested-by: Stefan Neufeind <typo3.neufeind@speedpartner.de> --- .../core/Classes/Authentication/AbstractUserAuthentication.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/typo3/sysext/core/Classes/Authentication/AbstractUserAuthentication.php b/typo3/sysext/core/Classes/Authentication/AbstractUserAuthentication.php index b13877ccf44e..0bab1b51fadd 100644 --- a/typo3/sysext/core/Classes/Authentication/AbstractUserAuthentication.php +++ b/typo3/sysext/core/Classes/Authentication/AbstractUserAuthentication.php @@ -888,7 +888,8 @@ abstract class AbstractUserAuthentication { 'ses_iplock' => $tempuser['disableIPlock'] ? '[DISABLED]' : $this->ipLockClause_remoteIPNumber($this->lockIP), 'ses_hashlock' => $this->hashLockClause_getHashInt(), 'ses_userid' => $tempuser[$this->userid_column], - 'ses_tstamp' => $GLOBALS['EXEC_TIME'] + 'ses_tstamp' => $GLOBALS['EXEC_TIME'], + 'ses_data' => '' ); } -- GitLab