[BUGFIX] Initialize new session with empty data field 58/41758/2
authorMorton Jonuschat <m.jonuschat@mojocode.de>
Mon, 20 Jul 2015 20:16:17 +0000 (22:16 +0200)
committerStefan Neufeind <typo3.neufeind@speedpartner.de>
Tue, 21 Jul 2015 00:43:09 +0000 (02:43 +0200)
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>
typo3/sysext/core/Classes/Authentication/AbstractUserAuthentication.php

index b13877c..0bab1b5 100644 (file)
@@ -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' => ''
                );
        }