-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Patch ZipStreamer to fix directory downloads #74
Patch ZipStreamer to fix directory downloads #74
Conversation
How to test this? The zip files work before and after this patch on my Windows 10 machine. With macOS they don't work (neither before nor after this patch). |
Ask people of nextcloud/server#2352 for the setup configurations. |
@@ -525,7 +525,7 @@ private function buildCentralDirectoryHeader($filePath, $timestamp, $gpFlags, | |||
private function buildEndOfCentralDirectoryRecord($cdRecLength) { | |||
if ($this->zip64) { | |||
$diskNumber = -1; | |||
$cdRecCount = -1; | |||
$cdRecCount = min(sizeof($this->cdRec), 0xffff);; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you fix the extra space and the extra ;
and then this is good for me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done in all 3 PRs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It at least fixes some problems. Lets do this and then baby steps for OSX...
Signed-off-by: Joas Schilling <coding@schilljs.com>
7db35ff
to
4ec6dd6
Compare
Patches ZIpStreamer with McNetic/PHPZipStreamer#39 to fix nextcloud/server#2352