Repository navigation
Add NormalizePath middleware to cleanup url - #5946
Merged
Merged
Conversation
Signed-off-by: Damian <[email protected]>
Member
|
Thanks @yungwarlock LGTM, is there anything additional to this PR to make it ready to merge? |
damiansan239
marked this pull request as ready for review
February 5, 2025 09:30
Contributor
Author
|
I was setting up my dev environment throughout yesterday i forgot about the PR |
Contributor
Author
|
I will add some test cases to show it's working |
generall
reviewed
Feb 5, 2025
Co-authored-by: Andrey Vasnetsov <[email protected]>
generall
approved these changes
Feb 5, 2025
KShivendu
requested changes
Feb 5, 2025
timvisee
pushed a commit
that referenced
this pull request
Feb 11, 2025
* feat: add NormalizePath middleware to cleanup url Signed-off-by: Damian <[email protected]> * Cleaned up comment on Normalize Path * test: add test case to validate behavior * Update tests/basic_api_test.sh Co-authored-by: Andrey Vasnetsov <[email protected]> --------- Signed-off-by: Damian <[email protected]> Co-authored-by: Andrey Vasnetsov <[email protected]>
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds an actix middleware that remove double slashes from API requests.
This should fix #5826 and also as an addition, help avoid path traversal attacks
All Submissions:
devbranch. Did you create your branch fromdev?New Feature Submissions:
cargo +nightly fmt --allcommand prior to submission?cargo clippy --all --all-featurescommand?Changes to Core Features: