[BUGFIX] linkvalidator: Fatal error: Call to a member function getUrl() 33/33333/3
authorPhilipp Gampe <philipp.gampe@typo3.org>
Thu, 16 Oct 2014 10:25:26 +0000 (12:25 +0200)
committerMarkus Klein <klein.t3@reelworx.at>
Mon, 15 Dec 2014 10:19:00 +0000 (11:19 +0100)
commit2d49cffa9e338624c07905c67393cdc6d8bf6284
treeb0bf330e381f9cd4301d7544cd7b8fdd981b1b0a
parent4a01f256f0b52dc17da5bdf765903ef7b8270f00
[BUGFIX] linkvalidator: Fatal error: Call to a member function getUrl()

The external link checker tries to provide detailed information in case
an URL is not accessible. To do this, it analyses the strack trace
provided by the exception.

Replace the stracktrace parsing with a more reliable method by checking
the last event. In case of a loop, the last event contains the response
object in the 'data' key.

Resolves: #62266
Releases: master,6.2
Change-Id: I51aaf3d6af85877541e920afaee76e6cac368e7b
Reviewed-on: http://review.typo3.org/33333
Reviewed-by: Jesper Paardekooper <jesper.paardekooper@gmail.com>
Tested-by: Jesper Paardekooper <jesper.paardekooper@gmail.com>
Reviewed-by: Markus Klein <klein.t3@reelworx.at>
Tested-by: Markus Klein <klein.t3@reelworx.at>
typo3/sysext/linkvalidator/Classes/Linktype/ExternalLinktype.php