From: eldy <>
Date: Sat, 19 Nov 2005 00:36:01 +0000 (+0000)
Subject: awredir support ohter protocols than http
X-Git-Tag: AWSTATS_6_5_BETA_2~16
X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a272d22c08560dee98a1ca7cf9693cf81bf020cd;p=thirdparty%2FAWStats.git
awredir support ohter protocols than http
---
diff --git a/wwwroot/cgi-bin/awredir.pl b/wwwroot/cgi-bin/awredir.pl
index d45e2dd9..ee66ab08 100644
--- a/wwwroot/cgi-bin/awredir.pl
+++ b/wwwroot/cgi-bin/awredir.pl
@@ -93,7 +93,7 @@ $Url=$ENV{QUERY_STRING};
if ($Url =~ /url=\"([^\"]+)\"/) { $Url=$1; }
elsif ($Url =~ /url=(.+)$/) { $Url=$1; }
-if ($Url !~ /^http/i) { $Url = "http://".$Url; }
+if ($Url !~ /^\w+:/i) { $Url = "http://".$Url; }
if (! $Url) {
error("Error: Bad use of $PROG. To redirect an URL with $PROG, use the following syntax:
/cgi-bin/$PROG.pl?url=http://urltogo");
}