From edaf04d489d68e186015000e497b6fca01c06f41 Mon Sep 17 00:00:00 2001 From: skodak Date: Fri, 8 May 2009 21:30:56 +0000 Subject: [PATCH] MDL-16957 explain why our htaccess is intentionally broken; merged from MOODLE_19_STABLE --- lib/setuplib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/setuplib.php b/lib/setuplib.php index c0ca7b415c..87a2a5231c 100644 --- a/lib/setuplib.php +++ b/lib/setuplib.php @@ -433,7 +433,7 @@ function make_upload_directory($directory, $shownotices=true) { // Make sure a .htaccess file is here, JUST IN CASE the files area is in the open if (!file_exists($currdir.'/.htaccess')) { if ($handle = fopen($currdir.'/.htaccess', 'w')) { // For safety - @fwrite($handle, "deny from all\r\nAllowOverride None\r\n"); + @fwrite($handle, "deny from all\r\nAllowOverride None\r\nNote: this file is broken intentionally, we do not want anybody to undo it in subdirectory!\r\n"); @fclose($handle); } } -- 2.39.5