Skip to content
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

Treat empty string as no RootPath in TarArchive (fixes #334) #336

Merged
merged 1 commit into from
Jun 15, 2019

Conversation

iUnknwn
Copy link
Contributor

@iUnknwn iUnknwn commented Apr 10, 2019

Ensures that, if the root path is an empty string, the library will not try to take a substring of the file name (and cause the first character of the filename to be truncated).

I certify that I own, and have sufficient rights to contribute, all source code and related material intended to be compiled or integrated with the source code for the SharpZipLib open source product (the "Contribution"). My Contribution is licensed under the MIT License.

Ensures that, if the root path is an empty string, the library
will not try to take a substring of the file name (and causing the
first character to be truncated).
@piksel piksel self-requested a review May 22, 2019 11:23
@piksel piksel changed the title Fix issue #334 from icsharpcode/SharpZipLib Treat empty string as no RootPath in TarArchive (fixes #334) Jun 15, 2019
Copy link
Member

@piksel piksel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The original behaviour is obviously wrong. Empty paths should be treated the same way as nulls here.

@piksel piksel merged commit 1c3f459 into icsharpcode:master Jun 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants