Skip to content

Commit

Permalink
* Remove http:// from the proxy server string.
Browse files Browse the repository at this point in the history
Patch by: "michiel bakker" <michiel_bakker@hotmail.com>
  • Loading branch information
mj committed Jul 4, 2002
1 parent b0ed560 commit 1b1d5da
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pear/PEAR/Common.php
Expand Up @@ -1432,6 +1432,7 @@ function downloadHttp($url, &$ui, $save_dir = '.', $callback = null)
}
$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;
Expand Down

0 comments on commit 1b1d5da

Please sign in to comment.