[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>
Showing
- typo3/sysext/core/Classes/Utility/GeneralUtility.php 77 additions, 14 deletionstypo3/sysext/core/Classes/Utility/GeneralUtility.php
- typo3/sysext/core/Tests/Unit/Utility/Fixtures/GeneralUtilityFixture.php 19 additions, 0 deletions...ore/Tests/Unit/Utility/Fixtures/GeneralUtilityFixture.php
- typo3/sysext/core/Tests/Unit/Utility/GeneralUtilityTest.php 41 additions, 2 deletionstypo3/sysext/core/Tests/Unit/Utility/GeneralUtilityTest.php
Please register or sign in to comment