[BUGFIX] Fix SQL error in createEntryData 97/51397/5
authorThomas Hohn <thomas@hohn.dk>
Mon, 23 Jan 2017 08:35:45 +0000 (09:35 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Thu, 26 Jan 2017 13:41:48 +0000 (14:41 +0100)
commite85dfe9008bdfba6ed9a23f176bfc7bc9b377f6b
tree6c24048f30f7759aa277cfe38f41e1171a4e1b62
parentfdd4e3021b558cb4bfe009aee1ad43af2b0798b0
[BUGFIX] Fix SQL error in createEntryData

The database field definition for ref_string is limited to varchar(200)
and can cause an SQL error when bigger strings are inserted.
In addition it makes sense to add a mb_substr() to avoid an error if
longer strings are inserted.

Fixes: #79425
Releases: master
Change-Id: I1f1e672f610f830ad5e02509cb1f0529c9cbeb41
Reviewed-on: https://review.typo3.org/51397
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/core/Classes/Database/ReferenceIndex.php
typo3/sysext/core/ext_tables.sql