[Pkg-owncloud-commits] [owncloud] 21/394: add svg mimetype to default htaccess

David Prévot taffit at alioth.debian.org
Fri Nov 8 23:11:18 UTC 2013


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to annotated tag v4.5.10
in repository owncloud.

commit d226ed697eb82d72eb9746a7c2c5866e7b8c5a24
Author: Robin Appelman <icewind at owncloud.com>
Date:   Sun Oct 28 16:00:31 2012 +0100

    add svg mimetype to default htaccess
---
 .htaccess     |    4 ++++
 lib/setup.php |    4 ++++
 2 files changed, 8 insertions(+)

diff --git a/.htaccess b/.htaccess
index 11ee1d5..a5d51c7 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]
 </IfModule>
+<IfModule mod_mime.c>
+AddType image/svg+xml svg svgz
+AddEncoding gzip svgz
+</IfModule>
 Options -Indexes
diff --git a/lib/setup.php b/lib/setup.php
index 810977a..a9bdba7 100644
--- a/lib/setup.php
+++ b/lib/setup.php
@@ -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
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list