summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Henrie <alexhenrie24@gmail.com>2024-04-22 19:48:35 -0600
committerDavid Faure <faure@kde.org>2024-04-23 07:46:00 +0000
commita2790eeefa4098271ca10c2d774d70ca22cd2ba4 (patch)
tree34b9207dbbb9203188677ca3fd2b26f2e728a0d3
parent3b416846a68fa6db013c8ff8af867b31e16db838 (diff)
Increase priority of application/vnd.oasis.opendocument.text-master
To avoid misdetection as application/vnd.oasis.opendocument.text.
-rw-r--r--data/freedesktop.org.xml.in2
-rw-r--r--tests/mime-detection/list2
-rw-r--r--tests/mime-detection/lo24.odmbin0 -> 8336 bytes
3 files changed, 3 insertions, 1 deletions
diff --git a/data/freedesktop.org.xml.in b/data/freedesktop.org.xml.in
index 91b2d35..3c0e162 100644
--- a/data/freedesktop.org.xml.in
+++ b/data/freedesktop.org.xml.in
@@ -1329,7 +1329,7 @@ command to generate the output files.
<expanded-acronym>OpenDocument Master</expanded-acronym>
<sub-class-of type="application/zip"/>
<generic-icon name="x-office-document"/>
- <magic priority="70">
+ <magic priority="75">
<match type="string" value="PK\003\004" offset="0">
<match type="string" value="mimetype" offset="30">
<match type="string" value="application/vnd.oasis.opendocument.text-master" offset="38"/>
diff --git a/tests/mime-detection/list b/tests/mime-detection/list
index 450da0b..784c150 100644
--- a/tests/mime-detection/list
+++ b/tests/mime-detection/list
@@ -191,6 +191,8 @@ so5.sdm application/vnd.stardivision.mail
lo7.doc application/msword
lo7.xls application/vnd.ms-excel
lo7.ppt application/vnd.ms-powerpoint
+# Created with LibreOffice 24.2
+lo24.odm application/vnd.oasis.opendocument.text-master
# Created with WordPerfect 9
regular.wpd application/vnd.wordperfect
compound.wpd application/vnd.wordperfect
diff --git a/tests/mime-detection/lo24.odm b/tests/mime-detection/lo24.odm
new file mode 100644
index 0000000..5e3d645
--- /dev/null
+++ b/tests/mime-detection/lo24.odm
Binary files differ