From: Christos Zoulas Date: Tue, 5 Aug 2014 07:38:45 +0000 (+0000) Subject: PR/360: Andreas Koehler: Escape regex properly. X-Git-Tag: FILE5_20~44 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bf3fea9e6c0b18e9a645d2a796a1e3ae29be5ee5;p=file PR/360: Andreas Koehler: Escape regex properly. --- diff --git a/magic/Magdir/msooxml b/magic/Magdir/msooxml index c908b716..80bdf13f 100644 --- a/magic/Magdir/msooxml +++ b/magic/Magdir/msooxml @@ -1,6 +1,6 @@ #------------------------------------------------------------------------------ -# $File: msooxml,v 1.3 2013/09/12 16:08:07 christos Exp $ +# $File: msooxml,v 1.4 2014/01/06 18:16:24 rrt Exp $ # msooxml: file(1) magic for Microsoft Office XML # From: Ralf Brown @@ -16,7 +16,7 @@ 0 string PK\003\004 !:strength +10 # make sure the first file is correct ->0x1E regex \[Content_Types\]\.xml|_rels/\.rels +>0x1E regex \\[Content_Types\\]\\.xml|_rels/\\.rels # skip to the second local file header # since some documents include a 520-byte extra field following the file # header, we need to scan for the next header