[BUGFIX] linkvalidator: Fatal error: Call to a member function getUrl() 71/35471/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:42 +0000 (11:19 +0100)
commit311a5b7d26408c120986b394530617aa26c811fe
tree19b69dcd501226084d280f1179cc330d4fd42358
parent91d3f1b1556ceb0cf143cd3f4fa13fa9535c8c90
[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 stack trace
provided by the exception.

Replace the stacktrace 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/35471
Reviewed-by: Markus Klein <klein.t3@reelworx.at>
Tested-by: Markus Klein <klein.t3@reelworx.at>
typo3/sysext/linkvalidator/Classes/Linktype/ExternalLinktype.php