Bug with protect directories

tsiou

Verified User
Joined
Sep 15, 2006
Messages
236
Location
Larisa, Greece
Hi, i 'm running the latest version of DA and i've noticed that DA append its protected directory code with such a way that deletes a line in existing .htaccess with the result of internal server error.

How to reproduce :
an existing .htaccess with :
---------------------------------
<Files ~ ".(tpl|pl)$">
Order allow,deny
Deny from all
Satisfy All
</Files>
---------------------------------

protect it with DA's system and the result is :
------------------------------------
<Files ~ ".(tpl|pl)$">
Order allow,deny
Deny from all
Satisfy All
AuthGroupFile /dev/null
AuthName "Construction"
AuthType Basic
AuthUserFile /home/xxx/domains/yyy/.htpasswd/public_html/.htpasswd
require valid-user
-------------------------------------

As you can see the </Files> is missing , causing apache to send internal server error.
 
Back
Top