From d100b8a04dccd43ddaac4e2c55b20eaa42efac60 Mon Sep 17 00:00:00 2001 From: moodler Date: Fri, 18 Aug 2006 09:54:09 +0000 Subject: [PATCH] Make sure .htaccess is created in dataroot, just in case --- lib/setuplib.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/setuplib.php b/lib/setuplib.php index f0bfc1d56a..63ddebb48a 100644 --- a/lib/setuplib.php +++ b/lib/setuplib.php @@ -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); -- 2.39.5