From: Martin Jansen Date: Thu, 4 Jul 2002 20:28:56 +0000 (+0000) Subject: * Remove http:// from the proxy server string. X-Git-Tag: xmlrpc_epi_0_51_merge_pt~9 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1b1d5da9074a5f69a9f68525025a8e09bc9674b6;p=php * Remove http:// from the proxy server string. Patch by: "michiel bakker" --- diff --git a/pear/PEAR/Common.php b/pear/PEAR/Common.php index ca06a96fb1..18f6b9a0ad 100644 --- a/pear/PEAR/Common.php +++ b/pear/PEAR/Common.php @@ -1432,6 +1432,7 @@ class PEAR_Common extends PEAR } $proxy_host = $proxy_port = null; if ($proxy = $config->get('http_proxy')) { + $proxy = str_replace('http://', '', $proxy); list($proxy_host, $proxy_port) = explode(':', $proxy); if (empty($proxy_port)) { $proxy_port = 8080;