[BUGFIX] Detection of curlProxyServer settings is incorrect 81/18481/5
authorDmitry Dulepov <dmitry.dulepov@gmail.com>
Tue, 26 Feb 2013 13:53:17 +0000 (17:53 +0400)
committerWouter Wolters <typo3@wouterwolters.nl>
Sun, 28 Jul 2013 20:24:15 +0000 (22:24 +0200)
Parsing of 'curlProxyServer' option during the bootstrap is incorrect.
It produces wrong host and port part in 'proxy_host' and 'proxy_port'
system options.

Change-Id: I12f66acef697dbec9b065edcba8ad0d8f78c4e01
Resolves: #45834
Releases: 6.2, 6.1, 6.0
Reviewed-on: https://review.typo3.org/18481
Reviewed-by: Stefan Neufeind
Tested-by: Stefan Neufeind
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
typo3/sysext/core/Classes/Core/Bootstrap.php

index 81e060d..1f021ad 100644 (file)
@@ -398,7 +398,7 @@ class Bootstrap {
         */
        protected function transferDeprecatedCurlSettings() {
                if (!empty($GLOBALS['TYPO3_CONF_VARS']['SYS']['curlProxyServer'])) {
-                       $proxyParts = explode(':', $GLOBALS['TYPO3_CONF_VARS']['SYS']['curlProxyServer'], 2);
+                       $proxyParts = Utility\GeneralUtility::revExplode(':', $GLOBALS['TYPO3_CONF_VARS']['SYS']['curlProxyServer'], 2);
                        $GLOBALS['TYPO3_CONF_VARS']['HTTP']['proxy_host'] = $proxyParts[0];
                        $GLOBALS['TYPO3_CONF_VARS']['HTTP']['proxy_port'] = $proxyParts[1];
                }