]> git.ipfire.org Git - thirdparty/AWStats.git/commitdiff
Ignore search phrases longer than 80 characters. 105/head
authorTomaz Solc <tomaz.solc@tablix.org>
Wed, 27 Jun 2018 12:24:57 +0000 (14:24 +0200)
committerTomaz Solc <tomaz.solc@tablix.org>
Tue, 10 Jul 2018 07:11:37 +0000 (09:11 +0200)
wwwroot/cgi-bin/awstats.pl

index b04ed6f8fe931d36b4e17a9c2f2ade504033b8f5..5d3dc1d2a72d9699b3033a9988a2710ea1bd884a 100755 (executable)
@@ -19986,7 +19986,7 @@ s/^(cache|related):[^\+]+//
                                                                                                        $param =~ s/^ +//;
                                                                                                        $param =~ s/ +$//;    # Trim
                                                                                                        $param =~ tr/ /\+/s;
-                                                                                                       if ( ( length $param ) > 0 )
+                                                                                                       if ( ( ( length $param ) > 0 ) and ( ( length $param ) < 80 ) )
                                                                                                        {
                                                                                                                $_keyphrases{$param}++;
                                                                                                        }