[BUGFIX] Check $http_response_headers in GeneralUtility::getUrl() 50/40150/2
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:19:29 +0000 (16:19 +0200)
commit0d91bf644165f42bc3e1e88fdb2a865035fa490d
tree318e5166592c07d87b0379a88026d0a944edec24
parentfc268e8e8f9ba1185a116f6c63f9b01cef5bdf39
[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/40150
Reviewed-by: Helmut Hummel <helmut.hummel@typo3.org>
Tested-by: Helmut Hummel <helmut.hummel@typo3.org>
typo3/sysext/core/Classes/Utility/GeneralUtility.php