summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpabs <pabs@pablotron.org>2009-01-29 13:48:46 -0500
committerpabs <pabs@pablotron.org>2009-01-29 13:48:46 -0500
commit2f246715c7eebcc08c33ee93baf162a7e2f83960 (patch)
treeb18445d5e3649b7cfd21ee63165ecbdbea93f430
parentc9d464c8b65c2b0195a3a90f129d18dc381d0b76 (diff)
downloadzipstream-php-2f246715c7eebcc08c33ee93baf162a7e2f83960.tar.bz2
zipstream-php-2f246715c7eebcc08c33ee93baf162a7e2f83960.zip
strip external file attributes (test for xp extraction support)
-rw-r--r--zipstream.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/zipstream.php b/zipstream.php
index 9138694..fd86284 100644
--- a/zipstream.php
+++ b/zipstream.php
@@ -295,7 +295,7 @@ class ZipStream {
# build file header
$fields = array( # (from V.A of APPNOTE.TXT)
array('V', 0x04034b50), # local file header signature
- array('v', 0x00), # version needed to extract
+ array('v', 0x14), # version needed to extract
array('v', 0x00), # general purpose bit flag
array('v', $meth), # compresion method (deflate or store)
array('V', $dts), # dos timestamp
@@ -409,7 +409,7 @@ class ZipStream {
$fields = array( # (from V,F of APPNOTE.TXT)
array('V', 0x02014b50), # central file header signature
array('v', 0x00), # version made by
- array('v', 0x00), # version needed to extract
+ array('v', 0x14), # version needed to extract
array('v', 0x00), # general purpose bit flag
array('v', $meth), # compresion method (deflate or store)
array('V', $dts), # dos timestamp
@@ -421,7 +421,7 @@ class ZipStream {
array('v', strlen($comment)), # file comment length
array('v', 0), # disk number start
array('v', 0), # internal file attributes
- array('V', 32), # external file attributes
+ array('V', 0), # external file attributes
array('V', $ofs), # relative offset of local header
);