mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-18 16:45:28 +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,
|
// 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
|
// 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.
|
// to generate correct path removed slash which would otherwise generate // invalid sequence.
|
||||||
|
// TODO: Figure out a cleaner way to do this sanitization.
|
||||||
trailingSlash := false
|
trailingSlash := false
|
||||||
if !isRawRequest && strings.HasSuffix(parsed.Path, "/") && strings.Contains(data, "{{BaseURL}}/") {
|
if !isRawRequest && strings.HasSuffix(parsed.Path, "/") && strings.Contains(data, "{{BaseURL}}/") {
|
||||||
trailingSlash = true
|
trailingSlash = true
|
||||||
}
|
}
|
||||||
|
|
||||||
values := generators.MergeMaps(
|
values := generators.MergeMaps(
|
||||||
generators.MergeMaps(dynamicValues, generateVariables(parsed, trailingSlash)),
|
generators.MergeMaps(dynamicValues, generateVariables(parsed, trailingSlash)),
|
||||||
generators.BuildPayloadFromOptions(r.request.options.Options),
|
generators.BuildPayloadFromOptions(r.request.options.Options),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user