summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2019-09-16 18:01:51 +0200
committerBastien Nocera <hadess@hadess.net>2019-09-16 18:05:52 +0200
commit9fab71b37d7abd75ee5599d006f9aab05d8107bb (patch)
tree5d7ad3fd2427c815b329b8d2296c14955571f820
parentcaf418fa90ebcc3243f12df46ebb6603d5ae183f (diff)
downloadshared-mime-info-9fab71b37d7abd75ee5599d006f9aab05d8107bb.tar.gz
Reduce priority of "<!--" magic for HTML files
Those are valid ways for loads of XML (and XML-ish) files to start. See https://bugzilla.redhat.com/show_bug.cgi?id=1752117
-rw-r--r--freedesktop.org.xml.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/freedesktop.org.xml.in b/freedesktop.org.xml.in
index 0315e7f5..f6fb84fa 100644
--- a/freedesktop.org.xml.in
+++ b/freedesktop.org.xml.in
@@ -6010,11 +6010,13 @@ command to generate the output files.
<match type="string" value="&lt;script" offset="0:256"/>
<match type="string" value="&lt;BODY" offset="0"/>
<match type="string" value="&lt;body" offset="0"/>
- <match type="string" value="&lt;!--" offset="0"/>
<match type="string" value="&lt;h1" offset="0"/>
<match type="string" value="&lt;H1" offset="0"/>
<match type="string" value="&lt;!doctype HTML" offset="0"/>
</magic>
+ <magic priority="40">
+ <match type="string" value="&lt;!--" offset="0"/>
+ </magic>
<glob pattern="*.html" weight="80"/>
<glob pattern="*.htm" weight="80"/>
</mime-type>