Skip to content

Intended behaviour for zip file names #495

Answered by Numpsy
piksel asked this question in General
Discussion options

You must be logged in to vote

Putting the separators/slashes into the correct format seems right, as does (maybe in a configurable fashion) stripping the path roots (not doing so maybe has ramifications for 'zipslip' and such as well as being unexpected?)

I don't know if the code should internally care about characters that might be invalid on certain file systems (as opposed to things that the zip spec doesn't allow) though?
I recall from testing one of these issues in the past (might have been #341) that the described error didn't occur on .NET Core because MS have removed the character validation from functions like IsPathRooted and left it just down to the functions that actually interact with the file system, as …

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by piksel
Comment options

You must be logged in to vote
1 reply
@piksel
Comment options

piksel Aug 16, 2020
Collaborator Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants