From 778658d9d9f211de95024ed3abd3b504277ee1e8 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Fri, 13 Dec 2013 17:02:23 +0100 Subject: [PATCH] Fixes reading central directory of zip files --- wcfsetup/install/files/lib/system/io/Zip.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/io/Zip.class.php b/wcfsetup/install/files/lib/system/io/Zip.class.php index 320aacacb0..dd0535de33 100644 --- a/wcfsetup/install/files/lib/system/io/Zip.class.php +++ b/wcfsetup/install/files/lib/system/io/Zip.class.php @@ -172,7 +172,7 @@ class Zip extends File implements IArchive { $data['mtime'] = gmmktime($hour, $minute, $second, $month, $day, $year); $data += unpack('Vcrc32/VcompressedSize/Vsize/vfilenameLength/vextraFieldLength/vfileCommentLength/vdiskNo/vinternalAttr/vexternalAttr', $this->read(26)); - $data['offset'] = $this->readAndUnpack(4, 'v'); + $data['offset'] = $this->readAndUnpack(4, 'V'); $data['filename'] = $this->read($data['filenameLength']); if (substr($data['filename'], -1) == '/') $data['type'] = 'folder'; else $data['type'] = 'file'; -- 2.20.1