From cf1a69991ccde56a30ad70b23a92a6e4e285a6e1 Mon Sep 17 00:00:00 2001 From: Andrew Date: Tue, 3 Feb 2026 15:51:21 +0000 Subject: [PATCH] fix: Add XLSX signature to MicrosoftOffice365Document (fixes #48) Add the signature 50 4B 03 04 14 00 00 08 08 00 to the list of recognized Office 365 document signatures. This signature is used by some XLSX files and should be recognized as XLSX instead of generic ZIP files. Fixes #48 --- FileTypeChecker/Types/MicrosoftOffice365Document.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/FileTypeChecker/Types/MicrosoftOffice365Document.cs b/FileTypeChecker/Types/MicrosoftOffice365Document.cs index 0ce4f11..800228d 100644 --- a/FileTypeChecker/Types/MicrosoftOffice365Document.cs +++ b/FileTypeChecker/Types/MicrosoftOffice365Document.cs @@ -12,6 +12,7 @@ public class MicrosoftOffice365Document : FileType, IFileType { new(new byte[] { 0x50, 0x4B, 0x03, 0x04, 0x14, 0x00, 0x06, 0x00, 0x08, 0x00, 0x00, 0x00, 0x21, 0x00 }), new(new byte[] { 0x50, 0x4B, 0x03, 0x04, 0x14, 0x00, 0x08, 0x08, 0x08, 0x00 }), + new(new byte[] { 0x50, 0x4B, 0x03, 0x04, 0x14, 0x00, 0x00, 0x08, 0x08, 0x00 }), new(new byte[] { 0x50, 0x4B, 0x03, 0x04, 0x14, 0x00, 0x00, 0x00, 0x08, 0x00 }), new(new byte[] { 0x50, 0x4B, 0x03, 0x04, 0x14, 0x00, 0x06, 0x00 }), new(new byte[] { 0x50, 0x4B, 0x03, 0x04, 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0xC8 })