tslocum / kusaba

This project is discontinued. Use TinyIB: https://gitlab.com/tslocum/TinyIB
0 stars 1 forks source link

Ban sometimes creates a bad .htaccess file #8

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Ban user.
2. Sometimes it does it,
3. Sometimes it don't.

What is the expected output? What do you see instead?

Banning a user sometimes creates a bad .htaccess file, where it creates an
incomplete IfModule tag. For example, here is a run down of my .htaccess
file when I get the error:

<IfModule
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REMOTE_ADDR} (banned IP addresses)$
RewriteRule !^(banned.php|youarebanned.jpg)$ /banned.php [L]
</IfModule>

The opened IfModule tag creates an internal server error, and I have to log
in and fix the file. removing the malformed tag fixes the problem.

What version of the product are you using? On what operating system?

Kusaba 1.0.2, Linux - Fedora 7, Apache 2.2.6.

Please provide any additional information below.

Original issue reported on code.google.com by Michael....@gmail.com on 15 Oct 2007 at 10:55

GoogleCodeExporter commented 9 years ago
In regards to steps to reproduce the problem, the issue happens after you've 
already
banned one user. When banning the second user forward, it creates the bad 
.htaccess
file above.

Original comment by Michael....@gmail.com on 17 Oct 2007 at 1:11

GoogleCodeExporter commented 9 years ago
Odd.  Can you try replacing the entire .htaccess file with the one which came 
with
the release, and then see if the problem arises again?  I can't see why the 
same text
would be written twice.  If it persists, can you set me up a temporary account 
on the
server?

Original comment by tslocum on 14 Nov 2007 at 6:45