From d329eb3b63c94d00d5c2bdb29e1e4860e25afdf6 Mon Sep 17 00:00:00 2001 From: "Michael Kaufmann (d00p)" Date: Wed, 20 Jan 2010 10:39:52 +0000 Subject: [PATCH] fixed syscp-bug #1269 (false AwStats RewriteRule); --- TODO | 2 +- lib/functions/syscp/function.createAWStatsVhost.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/TODO b/TODO index 22d83d7d..e4373ff0 100644 --- a/TODO +++ b/TODO @@ -6,7 +6,7 @@ FIXED 0001272 Default Config for libnss incomplete (debian/lenny) FIXED 0001281 Wrong open_basedir directive 0001280 deb packet 1.4.2.1-2 fu*ked FIXED 0001279 incorrect usage of escapeshellcmd - 0001269 AWStats RewriteRule is wrong +FIXED 0001269 AWStats RewriteRule is wrong 0001278 Customer and domain directories are not created 0001277 Apache Redirect => permanent 301 0001276 Bind Zones Not Updated on Nameserver Change diff --git a/lib/functions/syscp/function.createAWStatsVhost.php b/lib/functions/syscp/function.createAWStatsVhost.php index 8fa83382..862b106e 100644 --- a/lib/functions/syscp/function.createAWStatsVhost.php +++ b/lib/functions/syscp/function.createAWStatsVhost.php @@ -29,8 +29,8 @@ function createAWStatsVhost($siteDomain, $settings = null) { $vhosts_file = ' # AWStats statistics' . "\n"; $vhosts_file.= ' RewriteEngine On' . "\n"; - $vhosts_file.= ' RewriteRule ^/awstats(/.*)? /awstats/awstats.pl?config=' . $siteDomain . ' [L,PT]' . "\n"; - $vhosts_file.= ' RewriteRule ^/awstats.pl(.*)* /awstats/awstats.pl$1 [QSA,L,PT]' . "\n"; + $vhosts_file.= ' RewriteRule ^/awstats(/.*)?$ /awstats/awstats.pl?config=' . $siteDomain . ' [L,PT]' . "\n"; + $vhosts_file.= ' RewriteRule ^/awstats.pl(.*)$ /awstats/awstats.pl$1 [QSA,L,PT]' . "\n"; } else {