Commit 02eb9307 authored by Bastien Nocera's avatar Bastien Nocera

Raise SVG match priority to be above XML's

We lowered SVG's magic priority so that files would be first and
foremost detected as HTML, then as SVG. But SVG files are also XML, and
XML files had the same priority as SVGs, leading to SVG files being
detected as simply "XML".

Raise SVG's magic priority to be above XML, but below HTML's.
Fortunately we have a test now...

Fixes: 84563c62
parent 25987df9
Pipeline #62910 passed with stage
in 3 minutes and 36 seconds
...@@ -4918,7 +4918,7 @@ command to generate the output files. ...@@ -4918,7 +4918,7 @@ command to generate the output files.
<magic priority="80"> <magic priority="80">
<match type="string" value="&lt;!DOCTYPE svg" offset="0:256"/> <match type="string" value="&lt;!DOCTYPE svg" offset="0:256"/>
</magic> </magic>
<magic priority="40"> <magic priority="45">
<match type="string" value="&lt;svg" offset="0:256"/> <match type="string" value="&lt;svg" offset="0:256"/>
</magic> </magic>
<glob pattern="*.svg"/> <glob pattern="*.svg"/>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment