The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Problem with statmanager.cgi

Discussion in 'General Discussion' started by SunRay, Sep 15, 2009.

  1. SunRay

    SunRay Registered

    Joined:
    Apr 3, 2007
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    When "Statistics Status Summary" is ran from "Statistics Software Configuration" in WHM and the domain of the user chosen contains a hyphen then the result will always show that analog and webalizer are disabled and awstats are enabled regardless of the true actual configuration.

    User stats configuration, /home/USER/tmp/stats.conf, stores details in this format:
    WEBALIZER-SOME-DOMAIN.COM=yes
    ANALOG-SOME-DOMAIN.COM=no
    AWSTATS-SOME-DOMAIN.COM=yes

    The problem lies in /usr/local/cpanel/whostmgr/docroot/cgi/statmanager.cgi at line 952:
    my ( $gen, $dom ) = split( /-/, $stat );

    Using a hyphen (-) to split is wrong as this is only returning SOME into variable $dom

    Hyphens are accepted characters in domain names of all TLD's, even multiple hyphens are allowed.

    statmanager.cgi and stats.conf could be easily modified to use a non domain character, there are plenty to choose from, for example +.,|/^*;:_<>@
     
  2. MattCurry

    MattCurry Well-Known Member

    Joined:
    Aug 18, 2009
    Messages:
    275
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Houston, Tx
    Stat Manager

    Hello,

    I apologize for the issue you have run into, and I will take care to make sure it is looked into. Thank you for giving us this information, it is observant customers that help us keep such a great product on the market.

    Thank you,
    Matthew Curry
     
Loading...

Share This Page