[File] [PATCH] Fix mangled MIME types in msooxml

Anthony Steinhauser asteinhauser at google.com
Wed Jul 17 05:22:03 UTC 2024


Processing file from:
https://bitbucket.org/okapiframework/okapi/raw/ecf3a6be4d13bad9e7bb11b4196cd6ab2bc30ed1/okapi/filters/openxml/src/test/resources/1046.pptx
currently returns invalid MIME type:
application/vnd.openxmlformats-officedocument.presentationml.presentationapplication/vnd.openxmlformats-officedocument.presentationml.presentation 

---
 magic/Magdir/msooxml | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/magic/Magdir/msooxml b/magic/Magdir/msooxml
index 79284f50..94f26ae7 100644
--- a/magic/Magdir/msooxml
+++ b/magic/Magdir/msooxml
@@ -56,8 +56,9 @@
 >>>>>>>>>&26	search/6000	PK\003\004
 >>>>>>>>>>&26	use		msooxml
 >>>>>>>>>>&26	default		x
->>>>>>>>>>&26	search/6000	PK\003\004
->>>>>>>>>>>&26	use		msooxml
+>>>>>>>>>>>&26	search/6000	PK\003\004
+>>>>>>>>>>>>&26	use		msooxml
+>>>>>>>>>>>>&26	default		x		Microsoft OOXML
 >>>>>>>>>>>&26	default		x		Microsoft OOXML
 >>>>>>>>>>&26	default		x		Microsoft OOXML
 >>>>>>>>>&26	default		x		Microsoft OOXML
-- 
2.45.2.993.g49e7a77208-goog



More information about the File mailing list