From b63380469eda45f23a28dfe7a19c58c0b9b943c8 Mon Sep 17 00:00:00 2001 From: Morton Jonuschat <m.jonuschat@mojocode.de> Date: Sat, 14 Jan 2017 21:56:36 -0800 Subject: [PATCH] [BUGFIX] Use BLOB type column for ses_data in be_sessions table The unified session handling for frontend and backend requires identical SQL column types to properly escape the input data. Using binary encoding for session data in combination with a TEXT type field in the BE fails on PostgreSQL. Change-Id: I3f3f379b43f873335207232e498f2e9e2c8b35e5 Resolves: #79324 Releases: master Reviewed-on: https://review.typo3.org/51314 Tested-by: TYPO3com <no-reply@typo3.com> Reviewed-by: Manuel Selbach <manuel_selbach@yahoo.de> Tested-by: Manuel Selbach <manuel_selbach@yahoo.de> Reviewed-by: Markus Klein <markus.klein@typo3.org> Tested-by: Markus Klein <markus.klein@typo3.org> --- typo3/sysext/core/ext_tables.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typo3/sysext/core/ext_tables.sql b/typo3/sysext/core/ext_tables.sql index a3de2778096e..18c2682f1618 100644 --- a/typo3/sysext/core/ext_tables.sql +++ b/typo3/sysext/core/ext_tables.sql @@ -42,7 +42,7 @@ CREATE TABLE be_sessions ( ses_hashlock int(11) DEFAULT '0' NOT NULL, ses_userid int(11) unsigned DEFAULT '0' NOT NULL, ses_tstamp int(11) unsigned DEFAULT '0' NOT NULL, - ses_data longtext, + ses_data longblob, ses_backuserid int(11) NOT NULL default '0', PRIMARY KEY (ses_id,ses_name), KEY ses_tstamp (ses_tstamp) -- GitLab