]> source.dussan.org Git - nextcloud-server.git/commitdiff
no indexing in generated htaccess
authorKamil Domanski <kdomanski@kdemail.net>
Thu, 23 Jun 2011 21:41:53 +0000 (23:41 +0200)
committerKamil Domanski <kdomanski@kdemail.net>
Thu, 23 Jun 2011 21:41:53 +0000 (23:41 +0200)
lib/files.php
lib/setup.php

index fca311833b5c2bd3e1dc69f77dc746f3c311bb86..0e7e44ec2ab001f773e169799cb896895ae78569 100644 (file)
@@ -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
        }
 }
index 0a8c9650cbc1e7145d66525bba20b730482ed2b8..a3cefad62b0edd6ef3dc23189d5fbf4eb3e34299 100644 (file)
@@ -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";