[BUGFIX] GeneralUtility::getUrl() fails to process redirects sometimes 06/34306/2
authorDmitry Dulepov <dmitry@typo3.org>
Fri, 22 Feb 2013 09:16:34 +0000 (13:16 +0400)
committerHelmut Hummel <helmut.hummel@typo3.org>
Wed, 3 Dec 2014 15:56:34 +0000 (16:56 +0100)
commit0c3b5504e8a83279ee189c1b9f91a12993bafd01
treefcb62760d176014db40cf14cdd48dc6964503462
parentc6f91fb257d490ad541417e3f9aa8d939795f954
[BUGFIX] GeneralUtility::getUrl() fails to process redirects sometimes

If PHP's open_basedir is active, CURLOPT_FOLLOWLOCATION will be disabled
by PHP. In such case any redirects will not work. This causes problems
with extensions that fetch pages of the site and hit redirects. For
example, if the site uses http and parts of it use https, extensions
like "pagepath" or "solr" will not be able to work with "secondary"
protocol.

Change-Id: I2d9e50d2d00e4c8b0c930a929be7884fd0215c21
Resolves: #45741
Releases: 6.2, master
Reviewed-on: http://review.typo3.org/34306
Reviewed-by: Helmut Hummel <helmut.hummel@typo3.org>
Tested-by: Helmut Hummel <helmut.hummel@typo3.org>
typo3/sysext/core/Classes/Utility/GeneralUtility.php
typo3/sysext/core/Tests/Unit/Utility/Fixtures/GeneralUtilityFixture.php
typo3/sysext/core/Tests/Unit/Utility/GeneralUtilityTest.php