[BUGFIX] Better handling of requests in ExternalLinktype 11/57011/12
authorSybille Peters <sypets@gmx.de>
Fri, 18 May 2018 18:03:07 +0000 (20:03 +0200)
committerAndreas Wolf <andreas.wolf@typo3.org>
Sun, 24 Jun 2018 12:01:05 +0000 (14:01 +0200)
commitb2aa201255487525246603edbe6f1b0a21887650
tree45f61543c93f8a4b2672a20d51bc7b5831e880a1
parentbee0908a7d76439f6482827d045bc51139a32d89
[BUGFIX] Better handling of requests in ExternalLinktype

- Always check for existing response
- If HEAD request fails, a GET request should always be triggered
- Restructured, moved some local variables to class variables
- In case of redirect loop, output exception message instead of
  location and status code

Resolves: #83611
Resolves: #85067
Releases: master, 8.7
Change-Id: I1cf6ef4e3dbaa5fbc683affc7cf96a0dbeea75cd
Reviewed-on: https://review.typo3.org/57011
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Nicole Cordes <typo3@cordes.co>
Tested-by: Nicole Cordes <typo3@cordes.co>
Reviewed-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Tested-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Reviewed-by: Philipp Gampe <philipp.gampe@typo3.org>
Tested-by: Philipp Gampe <philipp.gampe@typo3.org>
Reviewed-by: Andreas Wolf <andreas.wolf@typo3.org>
Tested-by: Andreas Wolf <andreas.wolf@typo3.org>
typo3/sysext/linkvalidator/Classes/Linktype/ExternalLinktype.php