Skip to content
This repository was archived by the owner on Oct 10, 2022. It is now read-only.
This repository was archived by the owner on Oct 10, 2022. It is now read-only.

URL parameters should be percent-encoded #404

Open
@ehmicky

Description

@ehmicky

URL parameters should be percent-encoded using encodeURIComponent().

return url.replace(`{${name}}`, value)

This fix should be a major release, since some clients might currently do this percent-encoding themselves. This is the case for example of @netlify/build with the updatePlugin endpoint at netlify/build#2700 (which would need to be fixed).

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugcode to address defects in shipped code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions