From 6bc156ba69f51039300ec1b84abb748518dadf22 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Sun, 28 Oct 2012 16:00:31 +0100 Subject: add svg mimetype to default htaccess --- .htaccess | 4 ++++ lib/setup.php | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/.htaccess b/.htaccess index 11ee1d59f83..a5d51c78087 100755 --- 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] + +AddType image/svg+xml svg svgz +AddEncoding gzip svgz + Options -Indexes 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.= "\n"; + $content.= "\n"; + $content.= "AddType image/svg+xml svg svgz\n"; + $content.= "AddEncoding gzip svgz\n"; + $content.= "\n"; $content.= "Options -Indexes\n"; @file_put_contents(OC::$SERVERROOT.'/.htaccess', $content); //supress errors in case we don't have permissions for it -- cgit v1.2.3