Skip to content

Commit

Permalink
MDL-16957 explain why our htaccess is intentionally broken; merged fr…
Browse files Browse the repository at this point in the history
…om MOODLE_19_STABLE
  • Loading branch information
skodak committed May 8, 2009
1 parent d714732 commit edaf04d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/setuplib.php
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit edaf04d

Please sign in to comment.