Skip to content

fix: localise query replacements to url#5

Open
TrebledJ wants to merge 2 commits into
PortSwigger:mainfrom
TrebledJ:fix/url-replacement-badness
Open

fix: localise query replacements to url#5
TrebledJ wants to merge 2 commits into
PortSwigger:mainfrom
TrebledJ:fix/url-replacement-badness

Conversation

@TrebledJ
Copy link
Copy Markdown

Instead of mass replacing the URL path in the entire request, replace only the path in the first HTTP line. The fix here reuses the same pattern seen in other functions in this extension.

I've also isolated the makeHttpRequest call inside the try-block, to avoid conflating with possible exceptions in buildHttpRequest and other functions. In those other cases, we want exceptions to happen to see the error.

Instead of mass replacing the URL path in the entire request, replace only the path in the first HTTP line. The fix here reuses the same pattern seen in other functions in this extension.
…P/1.1` (when requesting) and the one in `https://...` (when reporting)
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