From 6ac2fdf44b636243630febd676090e4f6d138d69 Mon Sep 17 00:00:00 2001
From: Daniel Molkentin <daniel@molkentin.de>
Date: Wed, 24 Apr 2013 15:11:58 +0200
Subject: [PATCH] sync parameters in setup.php with the ones in the actual
 .htaccess

---
 lib/setup.php | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/lib/setup.php b/lib/setup.php
index c330729298..d1197b3ebf 100644
--- a/lib/setup.php
+++ b/lib/setup.php
@@ -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
 
-- 
GitLab