[BUGFIX] GeneralUtility::getUrl() fails to process redirects sometimes 39/18439/15
authorDmitry Dulepov <dmitry@typo3.org>
Fri, 22 Feb 2013 09:16:34 +0000 (13:16 +0400)
committerHelmut Hummel <helmut.hummel@typo3.org>
Tue, 18 Nov 2014 13:37:28 +0000 (14:37 +0100)
commit9d13e01042c3124f72e79bcf2cb6d515df210e25
tree565415bc6766dd865ca900383d6e9d47fe2e80b3
parentaa118521501ddef9a84d34715a4ba43cb066568b
[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/18439
Reviewed-by: Xavier Perseguers <xavier@typo3.org>
Tested-by: Xavier Perseguers <xavier@typo3.org>
Tested-by: Helmut Hummel <helmut.hummel@typo3.org>
Reviewed-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