(no subject)

Page 1.0 of 1.16
  • AWStats version is 6.9

     
  • jockee
    jockee
    2009-04-01

    This was introduced in 6.9. Works fine with earlier versions.

     
  • mark stoughton
    mark stoughton
    2009-04-08

    %methodurl(httpd.conf LogFormat value:%r) is of the format "<method> <queryString> <protocol>". Spaces separate these values, regardless of whether you change the delimiter in httpd.conf. If you change the LogSeparator value in the awstats.conf, the code in awstats.pl wrongly assumes that the new delimiter separates the values within %methodurl.

    However, this is not the case. The delimiter remains as a space.

    The offending code. I've commented out the improper line, and replaced it beneath it:

    Special for methodurl and methodurlnoprot

                        elsif ( $f =~ /%methodurl$/ ) {
                                $pos_method = $i;
                                $i++;
                                push @fieldlib, 'method';
                                $pos_url = $i;
                                $i++;
                                push @fieldlib, 'url';
                                $PerlParsingFormat .=
    

    "\\"([^$LogSeparatorWithoutStar]+) ([^$LogSeparatorWithoutStar]+)(?: [^\\"]+|)\\"";

    "\\"([^ ]+) ([^ ]+)(?: [^\\"]+|)\\"";

     
  • David S.
    David S.
    2012-12-05

    I can say that this Bug still exists, in all versions up to 7.1 i think.