From: <an...@us...> - 2006-08-12 01:01:22
|
Revision: 14283 Author: andy_st Date: 2006-08-11 18:01:15 -0700 (Fri, 11 Aug 2006) ViewCVS: http://svn.sourceforge.net/gallery/?rev=14283&view=rev Log Message: ----------- Make the .htaccess protection multi-layered. Modified Paths: -------------- trunk/gallery2/install/index.php trunk/gallery2/modules/core/CoreModuleExtras.inc Modified: trunk/gallery2/install/index.php =================================================================== --- trunk/gallery2/install/index.php 2006-08-12 00:46:01 UTC (rev 14282) +++ trunk/gallery2/install/index.php 2006-08-12 01:01:15 UTC (rev 14283) @@ -313,7 +313,13 @@ $htaccessPath = $dataBase . '.htaccess'; $fh = @fopen($htaccessPath, 'w'); if ($fh) { - $htaccessContents = "<IfModule mod_access.c>\n" . + $htaccessContents = "DirectoryIndex .htaccess\n" . + "SetHandler Gallery_Security_Do_Not_Remove\n" . + "Options None\n" . + "<IfModule mod_rewrite.c>\n" . + "RewriteEngine off\n" . + "</IfModule>\n" . + "<IfModule mod_access.c>\n" . "Order allow,deny\n" . "Deny from all\n" . "</IfModule>\n"; Modified: trunk/gallery2/modules/core/CoreModuleExtras.inc =================================================================== --- trunk/gallery2/modules/core/CoreModuleExtras.inc 2006-08-12 00:46:01 UTC (rev 14282) +++ trunk/gallery2/modules/core/CoreModuleExtras.inc 2006-08-12 01:01:15 UTC (rev 14283) @@ -2091,7 +2091,13 @@ */ $fh = @fopen($gallery->getConfig('data.gallery.base') . '.htaccess', 'w'); if ($fh) { - $htaccessContents = "<IfModule mod_access.c>\n" . + $htaccessContents = "DirectoryIndex .htaccess\n" . + "SetHandler Gallery_Security_Do_Not_Remove\n" . + "Options None\n" . + "<IfModule mod_rewrite.c>\n" . + "RewriteEngine off\n" . + "</IfModule>\n" . + "<IfModule mod_access.c>\n" . "Order allow,deny\n" . "Deny from all\n" . "</IfModule>\n"; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |