MDL-16957 explain why our htaccess is intentionally broken; merged from MOODLE_19_STABLE

This commit is contained in:
skodak
2009-05-08 21:30:56 +00:00
parent d714732db3
commit edaf04d489
+1 -1
View 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);
}
}