Skip to content
This repository was archived by the owner on May 21, 2025. It is now read-only.
This repository was archived by the owner on May 21, 2025. It is now read-only.

core/requestALB.go seem to be double escaping query string parameters #203

Open
@choonkeat

Description

@choonkeat

In

for q, l := range req.MultiValueQueryStringParameters {
for _, v := range l {
if queryString != "" {
queryString += "&"
}
queryString += url.QueryEscape(q) + "=" + url.QueryEscape(v)
}

It would seem like the key and values in req.MultiValueQueryStringParameters are raw i.e. already query escaped

so it should be

- queryString += url.QueryEscape(q) + "=" + url.QueryEscape(v)
+ queryString += q + "=" + v

I'm not sure about QueryStringParameters

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions