diff options
Diffstat (limited to 'magic/Magdir/msooxml')
| -rw-r--r-- | magic/Magdir/msooxml | 37 |
1 files changed, 23 insertions, 14 deletions
diff --git a/magic/Magdir/msooxml b/magic/Magdir/msooxml index 905017eb9123..4dfb3a9fb623 100644 --- a/magic/Magdir/msooxml +++ b/magic/Magdir/msooxml @@ -1,6 +1,6 @@ #------------------------------------------------------------------------------ -# $File: msooxml,v 1.19 2023/03/14 19:46:15 christos Exp $ +# $File: msooxml,v 1.23 2024/07/19 18:48:23 christos Exp $ # msooxml: file(1) magic for Microsoft Office XML # From: Ralf Brown <ralf.brown@gmail.com> @@ -38,31 +38,40 @@ # since some documents include a 520-byte extra field following the file # header, we need to scan for the next header >>>(18.l+49) search/6000 PK\003\004 +>>>>&26 use msooxml +>>>>&26 default x # now skip to the *third* local file header; again, we need to scan due to a # 520-byte extra field following the file header ->>>>&26 search/6000 PK\003\004 +>>>>>&26 search/6000 PK\003\004 # and check the subdirectory name to determine which type of OOXML -# file we have. Correct the mimetype with the registered ones: +# file we have. Correct the mimetype with the registered ones: # https://technet.microsoft.com/en-us/library/cc179224.aspx ->>>>>&26 use msooxml ->>>>>&26 default x +>>>>>>&26 use msooxml +>>>>>>&26 default x # OpenOffice/Libreoffice orders ZIP entry differently, so check the 4th file ->>>>>>&26 search/6000 PK\003\004 ->>>>>>>&26 use msooxml +>>>>>>>&26 search/6000 PK\003\004 +>>>>>>>>&26 use msooxml # Some OOXML generators add an extra customXml directory. Check another file. ->>>>>>>&26 default x ->>>>>>>>&26 search/6000 PK\003\004 ->>>>>>>>>&26 use msooxml +>>>>>>>>&26 default x +>>>>>>>>>&26 search/6000 PK\003\004 +>>>>>>>>>>&26 use msooxml +>>>>>>>>>>&26 default x +>>>>>>>>>>>&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 +>>>>>>>>&26 default x Microsoft OOXML >>>>>>>&26 default x Microsoft OOXML ->>>>>&26 default x Microsoft OOXML +>>>>>>&26 default x Microsoft OOXML >>0x1E regex \\[trash\\] >>>&26 search/6000 PK\003\004 >>>>&26 search/6000 PK\003\004 ->>>>>&26 use msooxml ->>>>>&26 default x +>>>>>&26 use msooxml +>>>>>&26 default x >>>>>>&26 search/6000 PK\003\004 ->>>>>>>&26 use msooxml +>>>>>>>&26 use msooxml >>>>>>>&26 default x Microsoft OOXML >>>>>>&26 default x Microsoft OOXML >>>>>&26 default x Microsoft OOXML |
