summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2019-09-11 13:16:31 +0200
committerBastien Nocera <hadess@hadess.net>2019-09-11 13:21:40 +0200
commit84563c62ab30190f8d3d25f8763556068f02d4a8 (patch)
tree626ee2f7939b3f87897787212ce4e7b5358a252f
parent9ffcb5655d61fa7b109f80c8a6a42467d87de167 (diff)
downloadshared-mime-info-84563c62ab30190f8d3d25f8763556068f02d4a8.tar.gz
Lower the magic for the often-embed "<svg" match
So that HTML files with "<svg" in them can be recognised first and foremost as an HTML file. See https://bugs.webkit.org/show_bug.cgi?id=201295
-rw-r--r--freedesktop.org.xml.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/freedesktop.org.xml.in b/freedesktop.org.xml.in
index a118870c..8df11cd9 100644
--- a/freedesktop.org.xml.in
+++ b/freedesktop.org.xml.in
@@ -4917,6 +4917,8 @@ command to generate the output files.
<sub-class-of type="application/xml"/>
<magic priority="80">
<match type="string" value="&lt;!DOCTYPE svg" offset="0:256"/>
+ </magic>
+ <magic priority="40">
<match type="string" value="&lt;svg" offset="0:256"/>
</magic>
<glob pattern="*.svg"/>