|
|
|
|
@ -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 |
|
|
|
|
|
|
|
|
|
|