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

Fix security hole in #50, plus minor code improvements #51

Closed
wants to merge 7 commits into from

Conversation

lpar
Copy link

@lpar lpar commented Mar 18, 2021

I took a look at #50 and implemented a fix. I can't think of any legitimate reasons why you'd want to allow .. in partial names, but just in case I've implemented a boolean Unsafe mode flag in FileProvider to enable that behavior, with the default being to enforce safety.

I also cleaned up the code a little so it only opens the partial file once, removed some redundant type declarations IDEA found, decapitalized an error message, and removed use of " " as a directory to search by default.

@lpar lpar closed this Mar 24, 2021
@lpar lpar deleted the branch cbroglie:master March 24, 2021 21:47
@lpar lpar deleted the master branch March 24, 2021 21:47
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.

1 participant