Commit 7c7f84e2 authored by Bastien Nocera's avatar Bastien Nocera
Browse files

Remove magic from STL binary

3-NUL bytes aren't enough to be sure that this will only ever match STL
binary headers.
parent 1e6b421a
...@@ -7153,13 +7153,6 @@ command to generate the output files. ...@@ -7153,13 +7153,6 @@ command to generate the output files.
<!-- 3D models and GCODEs --> <!-- 3D models and GCODEs -->
<mime-type type="model/x.stl-binary"> <mime-type type="model/x.stl-binary">
<_comment>STL 3D model (binary)</_comment> <_comment>STL 3D model (binary)</_comment>
<magic priority="10">
<match type="byte" value="0x0" mask="0xFFFF" offset="134">
<match type="byte" value="0x0" mask="0xFFFF" offset="184">
<match type="byte" value="0x0" mask="0xFFFF" offset="234"/>
<glob pattern="*.stl"/> <glob pattern="*.stl"/>
</mime-type> </mime-type>
...@@ -676,7 +676,7 @@ dbus.service text/x-dbus-service ...@@ -676,7 +676,7 @@ dbus.service text/x-dbus-service
dbus-comment.service text/x-dbus-service dbus-comment.service text/x-dbus-service
# 3D models and GCODEs # 3D models and GCODEs
binary.stl model/x.stl-binary binary.stl model/x.stl-binary oxo
ascii.stl model/x.stl-ascii x ascii.stl model/x.stl-ascii x
binary.stl model/x.stl-ascii xxx binary.stl model/x.stl-ascii xxx
ascii.stl model/x.stl-binary oxx ascii.stl model/x.stl-binary oxx
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