From: eldy <> Date: Mon, 29 Sep 2003 17:14:27 +0000 (+0000) Subject: Prepare code for decodeUTFkeys plugin. X-Git-Tag: AWSTATS_6_0_BETA~210 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7842ea8cc8498a63bf59a5aa1fc29f17d15324be;p=thirdparty%2FAWStats.git Prepare code for decodeUTFkeys plugin. --- diff --git a/wwwroot/cgi-bin/awstats.pl b/wwwroot/cgi-bin/awstats.pl index 9a884c69..073a796c 100644 --- a/wwwroot/cgi-bin/awstats.pl +++ b/wwwroot/cgi-bin/awstats.pl @@ -6307,6 +6307,7 @@ if ($UpdateStats && $FrameName ne 'index' && $FrameName ne 'mainleft') { # Updat # We found good parameter $param =~ s/.*=//; # Now param is keyphrase: "aaa+bbb/ccc+ddd%20eee'fff,ggg" + $param =~ s/^(cache|related):[^\+]+//; &ChangeWordSeparatorsIntoSpace($param); # Change [ aaa+bbb/ccc+ddd%20eee'fff,ggg ] into [ aaa bbb/ccc ddd eee fff ggg ] # TODO Add a plugin to convert utf8 coded params (google, alltheweb) into locally coded string ($PageCode) $param =~ s/^ +//; $param =~ s/ +$//; $param =~ tr/ /\+/s;