mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-18 17:05:29 +00:00
added todo
This commit is contained in:
parent
bb6486910f
commit
a6c5dbf7fb
@ -75,10 +75,12 @@ func (r *requestGenerator) Make(baseURL string, dynamicValues map[string]interfa
|
||||
// a trailing slash, and our Input URL is also suffixed with a trailing slash,
|
||||
// mark trailingSlash bool as true which will be later used during variable generation
|
||||
// to generate correct path removed slash which would otherwise generate // invalid sequence.
|
||||
// TODO: Figure out a cleaner way to do this sanitization.
|
||||
trailingSlash := false
|
||||
if !isRawRequest && strings.HasSuffix(parsed.Path, "/") && strings.Contains(data, "{{BaseURL}}/") {
|
||||
trailingSlash = true
|
||||
}
|
||||
|
||||
values := generators.MergeMaps(
|
||||
generators.MergeMaps(dynamicValues, generateVariables(parsed, trailingSlash)),
|
||||
generators.BuildPayloadFromOptions(r.request.options.Options),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user