Make sure .htaccess is created in dataroot, just in case
This commit is contained in:
@@ -55,6 +55,10 @@ function make_upload_directory($directory, $shownotices=true) {
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
// 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\n");
|
||||
@fclose($handle);
|
||||
|
||||
Reference in New Issue
Block a user