[Bug 1066834] Re: LevelForFileTypesDetection=0 produces unexpected results

Eric Klien admin at lifeboat.com
Wed Dec 5 14:19:11 UTC 2012


A solution to the problem is to change the following in awstats.pl:

                       if ($LevelForFileTypesDetection){
                               $datatoload{$filemime} = 1;

to:

#                       if ($LevelForFileTypesDetection)
{                               $datatoload{$filemime} = 1;

This still won't handle the .cur extension.  You could handle it by
adding it to MimeHashLib at lib/mime.pm or you could simply change (
$LevelForFileTypesDetection >= 2 || $MimeHashLib{$1} ) to (
$LevelForFileTypesDetection >= 0 || $MimeHashLib{$1} )

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to awstats in Ubuntu.
https://bugs.launchpad.net/bugs/1066834

Title:
  LevelForFileTypesDetection=0 produces unexpected results

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/awstats/+bug/1066834/+subscriptions



More information about the Ubuntu-server-bugs mailing list