[TASK] Ensure consistent handling of BLOBs 83/50883/8
authorMorton Jonuschat <m.jonuschat@mojocode.de>
Sun, 4 Dec 2016 19:40:00 +0000 (11:40 -0800)
committerChristian Kuhn <lolli@schwarzbu.ch>
Fri, 23 Dec 2016 17:40:05 +0000 (18:40 +0100)
commit8f97fa3a4aebadd4ae93acf8a15c77f73b7578c8
tree72181af2dd1bb1516bed8c0a76b420b94dea62de
parent260bb2786211b752403c0578384ce3cfbc621565
[TASK] Ensure consistent handling of BLOBs

Set PDO attributes to ensure that BLOB fields are returned as strings to PHP,
the way MySQL does. Update INSERT/UPDATE statements that deal with BLOB field
to declare the proper parameter type so that the driver can do the required
encoding/escaping when sending the data to the DBMS.

Releases: master
Resolves: #78884
Change-Id: I1618da9130549bd95ce0410420ecdee40cc3632d
Reviewed-on: https://review.typo3.org/50883
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: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
16 files changed:
typo3/sysext/core/Classes/Authentication/AbstractUserAuthentication.php
typo3/sysext/core/Classes/Cache/Backend/Typo3DatabaseBackend.php
typo3/sysext/core/Classes/DataHandling/DataHandler.php
typo3/sysext/core/Classes/Database/Connection.php
typo3/sysext/core/Classes/Database/ConnectionPool.php
typo3/sysext/core/Classes/Database/QueryView.php
typo3/sysext/core/Classes/Registry.php
typo3/sysext/core/Classes/Resource/Index/MetaDataRepository.php
typo3/sysext/core/Tests/Unit/Database/ConnectionTest.php
typo3/sysext/frontend/Classes/Authentication/FrontendUserAuthentication.php
typo3/sysext/impexp/Classes/Domain/Repository/PresetRepository.php
typo3/sysext/indexed_search/Classes/Controller/SearchController.php
typo3/sysext/indexed_search/Classes/Indexer.php
typo3/sysext/install/Classes/Service/SilentConfigurationUpgradeService.php
typo3/sysext/scheduler/Classes/Scheduler.php
typo3/sysext/scheduler/Classes/Task/AbstractTask.php