]> source.dussan.org Git - nextcloud-server.git/commitdiff
add svg mimetype to default htaccess
authorRobin Appelman <icewind@owncloud.com>
Sun, 28 Oct 2012 15:00:31 +0000 (16:00 +0100)
committerRobin Appelman <icewind@owncloud.com>
Sun, 28 Oct 2012 15:04:52 +0000 (16:04 +0100)
.htaccess
lib/setup.php

index 11ee1d59f83a69f61788b8da5b3504e006543972..a5d51c78087fe7fc1930541769111f0f729ea124 100755 (executable)
--- a/.htaccess
+++ b/.htaccess
@@ -19,4 +19,8 @@ RewriteRule ^apps/contacts/carddav.php remote.php/carddav/ [QSA,L]
 RewriteRule ^apps/([^/]*)/(.*\.(css|php))$ index.php?app=$1&getfile=$2 [QSA,L]
 RewriteRule ^remote/(.*) remote.php [QSA,L]
 </IfModule>
+<IfModule mod_mime.c>
+AddType image/svg+xml svg svgz
+AddEncoding gzip svgz
+</IfModule>
 Options -Indexes
index 810977a297c010e335acd7ea35af73d678f437b6..a9bdba73b63785a5e44102ad5fb193219a01a823 100644 (file)
@@ -577,6 +577,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