[BUGFIX] Strip tags only from strings in ArrayUtility::stripTagsFromValuesRecursive 14/58914/2
authorWolfgang Klinger <wolfgang@wazum.com>
Thu, 15 Nov 2018 16:45:15 +0000 (17:45 +0100)
committerGeorg Ringer <georg.ringer@gmail.com>
Mon, 19 Nov 2018 11:50:48 +0000 (12:50 +0100)
commit009d1ac02906597de8821f8c171818b9524fa229
treecf7742a1342a62fce286908248ab1f392e731960
parent582ad60f522ff0455e155673fdc42772fbe000fa
[BUGFIX] Strip tags only from strings in ArrayUtility::stripTagsFromValuesRecursive

Prevent an implicit type cast to string through strip_tags.
Ignore any scalar values other than string,
but preserve the possibility of an object's __toString conversion.

Resolves: #86938
Releases: master, 8.7
Change-Id: I27cb7834dc9e838f60f0d1bda94ab2c4e4011043
Reviewed-on: https://review.typo3.org/58914
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
typo3/sysext/core/Classes/Utility/ArrayUtility.php
typo3/sysext/core/Tests/Unit/Utility/ArrayUtilityTest.php