]> granicus.if.org Git - file/commitdiff
PR/360: Andreas Koehler: Escape regex properly.
authorChristos Zoulas <christos@zoulas.com>
Tue, 5 Aug 2014 07:38:45 +0000 (07:38 +0000)
committerChristos Zoulas <christos@zoulas.com>
Tue, 5 Aug 2014 07:38:45 +0000 (07:38 +0000)
magic/Magdir/msooxml

index e5be5b37db3604c779194f24ba77daf5a21c6549..059e729c54f181a24b1cc7a640bb5034e633d85c 100644 (file)
@@ -1,6 +1,6 @@
 
 #------------------------------------------------------------------------------
-# $File: msooxml,v 1.4 2014/01/06 18:16:24 rrt Exp $
+# $File: msooxml,v 1.5 2014/08/05 07:38:45 christos Exp $
 # msooxml:  file(1) magic for Microsoft Office XML
 # From: Ralf Brown <ralf.brown@gmail.com>
 
@@ -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