]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-16957 explain why our htaccess is intentionally broken; merged from MOODLE_19_STABLE
authorskodak <skodak>
Fri, 8 May 2009 21:30:56 +0000 (21:30 +0000)
committerskodak <skodak>
Fri, 8 May 2009 21:30:56 +0000 (21:30 +0000)
lib/setuplib.php

index c0ca7b415ce50f90121c367d69c430569509e7c8..87a2a5231c6151ac4a427c7941aacabe6195b8f2 100644 (file)
@@ -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);
         }
     }