refactor(raw&fuzzing): Fix duplicate query parameter. Allow fuzzing query from raw template#4519
Closed
n00b-bot wants to merge 1 commit intoprojectdiscovery:devfrom
Closed
refactor(raw&fuzzing): Fix duplicate query parameter. Allow fuzzing query from raw template#4519n00b-bot wants to merge 1 commit intoprojectdiscovery:devfrom
n00b-bot wants to merge 1 commit intoprojectdiscovery:devfrom
Conversation
- Refactored the `Parse` function in `pkg/protocols/http/raw/raw.go` to simplify the URL parsing and modification logic. - Created a `cloned` variable to clone the input URL for further modifications. - Removed unnecessary cloning of the input URL in multiple places. - Improved code readability and removed redundant code. These changes make the URL parsing and modification logic more concise and easier to understand.
Member
|
superseeded by #4477 |
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.
Parsefunction inpkg/protocols/http/raw/raw.goto simplify the URL parsing and modification logic.clonedvariable to clone the input URL for further modifications.These changes make the URL parsing and modification logic more concise and easier to understand.
Proposed changes
Change Fuzzing template only received from input and fix duplicate query parameters from input
Fixes #4494
Checklist