summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorddonatek <david.donatek@gmail.com>2021-11-02 23:53:06 +0100
committerPhil Sturgeon <me@philsturgeon.com>2021-11-17 17:18:28 +0100
commitd49ffb0cbbb19b552bf8f33cbfe9e52505eae21e (patch)
tree5e30d9c840bc3c20e8e83dc0b00b7d4e66f7ce5f
parentbf7dab3eeba78bc920a7b026558cf820aefd1f3d (diff)
Added another SVG mimetype
Some MIME detection programs/libraries identify SVG files without `<?xml ...?>` declaration as `image/svg`
-rw-r--r--application/config/mimes.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/application/config/mimes.php b/application/config/mimes.php
index f5407ff89..b2e989fea 100644
--- a/application/config/mimes.php
+++ b/application/config/mimes.php
@@ -162,7 +162,7 @@ return array(
'cdr' => array('application/cdr', 'application/coreldraw', 'application/x-cdr', 'application/x-coreldraw', 'image/cdr', 'image/x-cdr', 'zz-application/zz-winassoc-cdr'),
'wma' => array('audio/x-ms-wma', 'video/x-ms-asf'),
'jar' => array('application/java-archive', 'application/x-java-application', 'application/x-jar', 'application/x-compressed'),
- 'svg' => array('image/svg+xml', 'application/xml', 'text/xml'),
+ 'svg' => array('image/svg+xml', 'image/svg', 'application/xml', 'text/xml'),
'vcf' => 'text/x-vcard',
'srt' => array('text/srt', 'text/plain'),
'vtt' => array('text/vtt', 'text/plain'),