[BUGFIX] Strip tags only from strings in ArrayUtility::stripTagsFromValuesRecursive 00/58900/8
authorWolfgang Klinger <wolfgang@wazum.com>
Thu, 15 Nov 2018 16:45:15 +0000 (17:45 +0100)
committerGeorg Ringerstrong style="color:red"x/strong <georg.ringer@gmail.com>
Mon, 19 Nov 2018 10:29:36 +0000 (11:29 +0100)
commita295c186584918b12fc4b29e12f8bcf6a126af65
tree8d0792c24a4d6742d8e89159dc48170dca0be5f2
parentf2693362a8060b91ba429a2668732649744513d1
[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/58900
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Mathias Brodala <mbrodala@pagemachine.de>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
Reviewed-by: Georg Ringer<strong style="color:red">x</strong> <georg.ringer@gmail.com>
Tested-by: Georg Ringer<strong style="color:red">x</strong> <georg.ringer@gmail.com>
typo3/sysext/core/Classes/Utility/ArrayUtility.php
typo3/sysext/core/Tests/Unit/Utility/ArrayUtilityTest.php