[BUGFIX] Better handling of requests in ExternalLinktype 56/57356/2
authorSybille Peters <sypets@gmx.de>
Fri, 18 May 2018 18:03:07 +0000 (20:03 +0200)
committerStefan Neufeind <typo3.neufeind@speedpartner.de>
Sun, 24 Jun 2018 22:06:13 +0000 (00:06 +0200)
commit8833bf90cd06d4725abf72aab90802969be759ba
tree15d7ecbeeebb617a6cb7ebf7634e921e6750da7d
parentc78e9b42b469b57a34d0e2e7baa1a85f48b44549
[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/57356
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Tested-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
typo3/sysext/linkvalidator/Classes/Linktype/ExternalLinktype.php