Skip to content
Snippets Groups Projects
Commit e4ee3f0b authored by Morton Jonuschat's avatar Morton Jonuschat Committed by Frank Nägler
Browse files

[BUGFIX] DataHandler: cast value to string in checkValueForInput()

Explicitly cast the value as a string before using substr() on it.
Otherwise NULL values would be passed to substr(), resulting in a return
value of FALSE. Without MySQL strict mode this has no direct influence
on the further usage of the value as string as the string representation
of FALSE is an empty string. With MySQL strict mode enabled this leads
to errors upon insertion of records into the database as boolean values
get converted to 0/1 respectively.

Resolves: #68602
Related: #68562
Related: #55082
Releases: master
Change-Id: Idc3ffa147965083492a04b12c64a6c15ddd2277b
Reviewed-on: http://review.typo3.org/42260


Reviewed-by: default avatarWouter Wolters <typo3@wouterwolters.nl>
Tested-by: default avatarWouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: default avatarFrank Nägler <frank.naegler@typo3.org>
Tested-by: default avatarFrank Nägler <frank.naegler@typo3.org>
parent dda6bcea
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment