[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Webalizer problem
- Subject: Re: [cobalt-users] Webalizer problem
- From: flash22@xxxxxxx
- Date: Sat Nov 3 10:59:01 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
On Sat, 3 Nov 2001, MikeM wrote:
>
> The Webalizer 2.01 package from cobalt-aid.sourceforge.net odoes not overwrite the .htaccess file.
here's the code from the /usr/bin/webalizer2.pl script that runs webalizer:
>
> # Create a .htaccess if it isn't there yet
> if (!-e '$thepath/.htaccess')
> {
And here you found the EXACT bug, '' is NOT a string, thus
'$thepath/.htaccess' is always an invalid filename, in addition,
variable's aren't expanded in ''s
if (!-e "$thepath/.htaccess")
Would possibly do something, tho it's not totally sane either...
gsh