From: Kamil Domanski Date: Thu, 23 Jun 2011 21:41:53 +0000 (+0200) Subject: no indexing in generated htaccess X-Git-Tag: v3.0~267^2~453 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0bf67298d142b157712ce345e1d999ff2ab9ea49;p=nextcloud-server.git no indexing in generated htaccess --- diff --git a/lib/files.php b/lib/files.php index fca311833b5..0e7e44ec2ab 100644 --- a/lib/files.php +++ b/lib/files.php @@ -297,6 +297,7 @@ class OC_FILES { $content.= "php_value upload_max_filesize $size\n";//upload limit $content.= "php_value post_max_size $size\n"; $content.= "SetEnv htaccessWorking true\n"; + $content.= "Options -Indexes\n"; @file_put_contents($SERVERROOT.'/.htaccess', $content); //supress errors in case we don't have permissions for it } } diff --git a/lib/setup.php b/lib/setup.php index 0a8c9650cbc..a3cefad62b0 100644 --- a/lib/setup.php +++ b/lib/setup.php @@ -188,6 +188,7 @@ class OC_SETUP { $content.= "php_value upload_max_filesize 20M\n";//upload limit $content.= "php_value post_max_size 20M\n"; $content.= "SetEnv htaccessWorking true\n"; + $content.= "Options -Indexes\n"; @file_put_contents($SERVERROOT.'/.htaccess', $content); //supress errors in case we don't have permissions for it $content = "deny from all";