-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent mismatches between arcname and data when adding paths (#22)
Previously, it was possible to add a directory and give it an arcname that didn't end with a "/". Likewise, it was also possible to add a file with a arcname that ended with a "/". These cases would cause an incorrect stream size to be calculated, as well as create strange zip files. This commit fixes this issue by modifying arcnames as paths are added to ensure that directories end with "/" and files do not.
- Loading branch information
Showing
2 changed files
with
40 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters