sync parameters in setup.php with the ones in the actual .htaccess

This commit is contained in:
Daniel Molkentin 2013-04-24 15:11:58 +02:00
parent a86fe7920b
commit 6ac2fdf44b
1 changed files with 4 additions and 0 deletions

View 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