[BUGFIX] Treat empty responses as error in GeneralUtility::getUrl 39/56039/5
authorFelix Buenemann <felix.buenemann@gmail.com>
Wed, 7 Mar 2018 20:51:52 +0000 (21:51 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Thu, 8 Mar 2018 01:43:06 +0000 (02:43 +0100)
commit2bba5cc7f3d1c2a90bad7bb487e33a8ccdca5e86
treeb87266e3635a7ee2ba3e08fcb254cc0bac52b80b
parent3daaf6c8c5764dc368a376ae58ec3d06b2398833
[BUGFIX] Treat empty responses as error in GeneralUtility::getUrl

This fixes a negation bug introduced when the GeneralUtility::getUrl
code was converted to use GuzzleHttp instead of cURL.

Also updated ErrorController test doubles that where asserting the
wrong behavior.

Resolves: #84167
Releases: master, 8.7
Change-Id: I9b8982dc34f8a4ac22769beb7f837f090ce73f23
Reviewed-on: https://review.typo3.org/56039
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Tested-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/core/Classes/Utility/GeneralUtility.php
typo3/sysext/frontend/Tests/Unit/Controller/ErrorControllerTest.php