From 3a16deec73ccb3eaffc85c1126bcb01d52ea32d2 Mon Sep 17 00:00:00 2001 From: Petter Reinholdtsen Date: Fri, 19 Nov 2010 13:48:44 +0000 Subject: Change sitesummary-upload to not try to parse an empty $http_proxy variable. This get it working on hosts without a proxy setting. --- sitesummary-upload | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sitesummary-upload') diff --git a/sitesummary-upload b/sitesummary-upload index 6e5504c..04aaf4b 100755 --- a/sitesummary-upload +++ b/sitesummary-upload @@ -31,7 +31,7 @@ print "Unable to parse url\n" if ($opts{'d'} && ! $host); my ($http_proxy,$proxy,$port,$remote); $http_proxy=$ENV{'http_proxy'}; -if (defined($http_proxy)) +if (defined($http_proxy) && $http_proxy) { $http_proxy =~ m{http://([^:]*)(?::([0-9]+))?} or die ("unrecognized http_proxy"); -- cgit v1.2.3