[BUGFIX] Check $http_response_headers in GeneralUtility::getUrl() 42/40142/3
authorAndreas Fernandez <a.fernandez@scripting-base.de>
Wed, 10 Jun 2015 07:19:07 +0000 (09:19 +0200)
committerHelmut Hummel <helmut.hummel@typo3.org>
Wed, 10 Jun 2015 14:14:51 +0000 (16:14 +0200)
commit318f49fa328e4d34f23f4073f7fef126176adb1f
treec0500dc4f59351fbfbbd3cd32cb0f2ba62a50452
parent20f616df74550dee5162eed3bcc7f6e60b64671a
[BUGFIX] Check $http_response_headers in GeneralUtility::getUrl()

If one queries a local, non-existing file with GeneralUtility::getUrl()
AND sets the $report parameter, implode() fails because
$http_response_headers remains NULL, as there is no HTTP request.
Check the existance of $http_response_headers and alternatively use the
URL for logging.

Resolves: #67383
Releases: master, 6.2
Change-Id: I796935fbef090061c7d12502593190f4223765b3
Reviewed-on: http://review.typo3.org/40142
Reviewed-by: Xavier Perseguers <xavier@typo3.org>
Tested-by: Xavier Perseguers <xavier@typo3.org>
Reviewed-by: Nicole Cordes <typo3@cordes.co>
Tested-by: Nicole Cordes <typo3@cordes.co>
Reviewed-by: Helmut Hummel <helmut.hummel@typo3.org>
Tested-by: Helmut Hummel <helmut.hummel@typo3.org>
typo3/sysext/core/Classes/Utility/GeneralUtility.php