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

About directory backtracking #675

Open
rand01m opened this issue Apr 6, 2023 · 1 comment
Open

About directory backtracking #675

rand01m opened this issue Apr 6, 2023 · 1 comment

Comments

@rand01m
Copy link

rand01m commented Apr 6, 2023

strPath = [NSURL URLWithString:strPath].standardizedURL.absoluteString;

This line of code still cannot prevent directory backtracking, which should be "a/b/../c.txt" -> "a/b/c.txt"

@Coeur
Copy link
Member

Coeur commented Jul 22, 2023

Why should it be "a/b/c.txt"? The author of the archive can set any path they want under ".", and returning "a/c.txt" is fine and likely the desired behavior.

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

No branches or pull requests

2 participants