From: eldy <> Date: Thu, 16 Jan 2003 15:33:55 +0000 (+0000) Subject: Fixed bug 620040. X-Git-Tag: AWSTATS_5_4_BETA~49 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=984e8cc71891e9b650446fb28b0579037e166c8d;p=thirdparty%2FAWStats.git Fixed bug 620040. --- diff --git a/docs/awstats_changelog.txt b/docs/awstats_changelog.txt index bf24aa7b..6b22b386 100644 --- a/docs/awstats_changelog.txt +++ b/docs/awstats_changelog.txt @@ -14,6 +14,7 @@ Fixes: - Better parsing of parameters (Solved bug 635962). - Users did not appear in Authenticated users list if hits on pages were 0. - Value of title "Top x" for domains chart was not always correct. +- Fixed bug 620040 that prevented to use "#" char in HTMLHeadSection. New features/improvments: - Added urlaliasbuilder.pl tool. diff --git a/wwwroot/cgi-bin/awstats.pl b/wwwroot/cgi-bin/awstats.pl index 4fd736e5..b1fb17b4 100644 --- a/wwwroot/cgi-bin/awstats.pl +++ b/wwwroot/cgi-bin/awstats.pl @@ -1051,8 +1051,7 @@ sub Parse_Config { # Remove comments if ($_ =~ /^#/) { next; } - $_ =~ s/^([^\"]*)#.*/$1/; - $_ =~ s/^([^\"]*\"[^\"]*\"[^\"]*)#.*/$1/; + $_ =~ s/\s#.*$/$1/; # Extract param and value #if ($Debug) { debug("$_",2); } my @felter=split(/=/,$_,2);