diff options
author | Bastien Nocera <hadess@hadess.net> | 2019-09-16 18:01:51 +0200 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2019-09-16 18:05:52 +0200 |
commit | 9fab71b37d7abd75ee5599d006f9aab05d8107bb (patch) | |
tree | 5d7ad3fd2427c815b329b8d2296c14955571f820 | |
parent | caf418fa90ebcc3243f12df46ebb6603d5ae183f (diff) | |
download | shared-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.in | 4 |
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="<script" offset="0:256"/> <match type="string" value="<BODY" offset="0"/> <match type="string" value="<body" offset="0"/> - <match type="string" value="<!--" offset="0"/> <match type="string" value="<h1" offset="0"/> <match type="string" value="<H1" offset="0"/> <match type="string" value="<!doctype HTML" offset="0"/> </magic> + <magic priority="40"> + <match type="string" value="<!--" offset="0"/> + </magic> <glob pattern="*.html" weight="80"/> <glob pattern="*.htm" weight="80"/> </mime-type> |