]> source.dussan.org Git - nextcloud-server.git/commitdiff
sync parameters in setup.php with the ones in the actual .htaccess
authorDaniel Molkentin <daniel@molkentin.de>
Wed, 24 Apr 2013 13:11:58 +0000 (15:11 +0200)
committerDaniel Molkentin <daniel@molkentin.de>
Wed, 24 Apr 2013 13:11:58 +0000 (15:11 +0200)
lib/setup.php

index c330729298e1891286f29dc6263acd64e287ce20..d1197b3ebf3bf0a47808cfda9147793f42802417 100644 (file)
@@ -828,6 +828,10 @@ class OC_Setup {
                $content.= "AddType image/svg+xml svg svgz\n";
                $content.= "AddEncoding gzip svgz\n";
                $content.= "</IfModule>\n";
+               $content.= "<IfModule dir_module>\n";
+               $content.= "DirectoryIndex index.php index.html\n";
+               $content.= "</IfModule>\n";
+               $content.= "AddDefaultCharset utf-8\n";
                $content.= "Options -Indexes\n";
                @file_put_contents(OC::$SERVERROOT.'/.htaccess', $content); //supress errors in case we don't have permissions for it