summaryrefslogtreecommitdiffstats
path: root/lib/setup.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-10-28 16:00:31 +0100
committerRobin Appelman <icewind@owncloud.com>2012-10-28 16:03:52 +0100
commit6bc156ba69f51039300ec1b84abb748518dadf22 (patch)
tree1b23fa5d787297220ab6a7f434f0480643dbca8b /lib/setup.php
parent4fd0514f0af9286636c3665d02d10700fd0e3141 (diff)
downloadnextcloud-server-6bc156ba69f51039300ec1b84abb748518dadf22.tar.gz
nextcloud-server-6bc156ba69f51039300ec1b84abb748518dadf22.zip
add svg mimetype to default htaccess
Diffstat (limited to 'lib/setup.php')
-rw-r--r--lib/setup.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/setup.php b/lib/setup.php
index 9231845da51..56f66945c2b 100644
--- a/lib/setup.php
+++ b/lib/setup.php
@@ -592,6 +592,10 @@ class OC_Setup {
$content.= "RewriteRule ^apps/([^/]*)/(.*\.(css|php))$ index.php?app=$1&getfile=$2 [QSA,L]\n";
$content.= "RewriteRule ^remote/(.*) remote.php [QSA,L]\n";
$content.= "</IfModule>\n";
+ $content.= "<IfModule mod_mime.c>\n";
+ $content.= "AddType image/svg+xml svg svgz\n";
+ $content.= "AddEncoding gzip svgz\n";
+ $content.= "</IfModule>\n";
$content.= "Options -Indexes\n";
@file_put_contents(OC::$SERVERROOT.'/.htaccess', $content); //supress errors in case we don't have permissions for it