summaryrefslogtreecommitdiffstats
path: root/lib/files.php
diff options
context:
space:
mode:
authorKamil Domanski <kdomanski@kdemail.net>2011-06-23 23:41:53 +0200
committerKamil Domanski <kdomanski@kdemail.net>2011-06-23 23:41:53 +0200
commit0bf67298d142b157712ce345e1d999ff2ab9ea49 (patch)
tree877ac53afb60825d7194766b63ff002285b52fdf /lib/files.php
parent5aa8f16bbf95b3de867a4c5e3cf1e862885e5568 (diff)
downloadnextcloud-server-0bf67298d142b157712ce345e1d999ff2ab9ea49.tar.gz
nextcloud-server-0bf67298d142b157712ce345e1d999ff2ab9ea49.zip
no indexing in generated htaccess
Diffstat (limited to 'lib/files.php')
-rw-r--r--lib/files.php1
1 files changed, 1 insertions, 0 deletions
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
}
}