[BUGFIX] Detection of curlProxyServer settings is incorrect 51/22651/2
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:25:22 +0000 (22:25 +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/22651
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
typo3/sysext/core/Classes/Core/Bootstrap.php

index 2408e03..64c5f06 100644 (file)
@@ -354,7 +354,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];
                }