[BUGFIX] Make getFirstTag() return empty string for input without tag 98/42898/3
authorMorton Jonuschat <m.jonuschat@mojocode.de>
Fri, 28 Aug 2015 06:27:36 +0000 (08:27 +0200)
committerAlexander Opitz <opitz.alexander@googlemail.com>
Tue, 8 Sep 2015 07:12:20 +0000 (09:12 +0200)
commit4bdc929bfdcf5b162d102a0116bb8d0521c5a6cc
tree6aac57f2df48030e12b1090935600928a3cdb237
parent61d023cdbc7e6de0f428acc4979a8cf7ea038fd3
[BUGFIX] Make getFirstTag() return empty string for input without tag

getFirstTag() didn't take into account that strpos() returns FALSE when
the needle isn't found.

Resolves: #69318
Releases: master
Change-Id: Ie530db9cbed92fa11199852cc0aec77024354814
Reviewed-on: http://review.typo3.org/42898
Reviewed-by: Michael Oehlhof <typo3@oehlhof.de>
Tested-by: Michael Oehlhof <typo3@oehlhof.de>
Reviewed-by: Alexander Opitz <opitz.alexander@googlemail.com>
Tested-by: Alexander Opitz <opitz.alexander@googlemail.com>
typo3/sysext/core/Classes/Html/HtmlParser.php
typo3/sysext/core/Tests/Unit/Html/HtmlParserTest.php