-
Notifications
You must be signed in to change notification settings - Fork 346
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
Implement secure_join for path #354
Conversation
Codecov Report
@@ Coverage Diff @@
## main #354 +/- ##
==========================================
+ Coverage 69.08% 70.56% +1.48%
==========================================
Files 47 48 +1
Lines 7033 7533 +500
==========================================
+ Hits 4859 5316 +457
- Misses 2174 2217 +43 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good overall.
You may have to run |
This is overly complex. Did you check out fs::canonicalize? |
I was also wondering if it could be implemented more simply with |
It is not the same thing unfortunately. First,
See https://github.com/cyphar/filepath-securejoin for details and this is the same function used in the |
I understood. Thanks. |
Hi, I've updated the code according to @yihuaf reviews and checked both |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cargo clippy --all-targets --all-features -- -D warnings
to make CI happy
Sorry. I thought running Meanwhile, I will be making the changes. |
This PR serve as a prototype for issue #346