From: Matthias Schmidt Date: Fri, 13 Dec 2013 16:02:23 +0000 (+0100) Subject: Fixes reading central directory of zip files X-Git-Tag: 2.0.1~53 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=778658d9d9f211de95024ed3abd3b504277ee1e8;p=GitHub%2FWoltLab%2FWCF.git Fixes reading central directory of zip files --- 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';