[BUGFIX] Warnings in StringUtility
authorChristian Kuhn <lolli@schwarzbu.ch>
Sat, 8 Sep 2012 20:44:40 +0000 (22:44 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sat, 8 Sep 2012 20:51:58 +0000 (22:51 +0200)
commit03ebef90420471d4eb390312b339f02e1ac5d495
treee0f0e4025c3257c346b5730380e9b68a15cb330e
parent3d7451485a90e4279272ae7817a3c3420159abba
[BUGFIX] Warnings in StringUtility

StringUtility::isLastPartOfString does not sanitize the input arguments
enough and throws warnings if calling strlen() for example with arrays.
The patch changes the (new 6.0) method to sanitize the arguments and now
throws Exceptions if they can not be interpreted as string.
The tests are adapted to test for the exception and adds a test with
an object to the data provider.

Change-Id: I497a1478a7804c4bbeddc2d1e340e29d73efa200
Resolves: #40767
Releases: 6.0
Reviewed-on: http://review.typo3.org/14467
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
tests/Unit/t3lib/utility/class.t3lib_utility_stringTest.php
typo3/sysext/core/Classes/Utility/StringUtility.php