Skip to content

Wrong back tick encoding in encodeQueryValue #302

@byt3m4st3r

Description

@byt3m4st3r

Environment

ufo: 1.6.1
node: 22.19.0

Reproduction

import { encodeQueryValue } from "ufo";

console.log(encodeQueryValue("a`b"));

Describe the bug

The query string “a`b” is not encoded to the query string URL value “a%60b”.

See URL RFC1738 Section-2.2, Page 3 under “Unsafe:”.

Additional context

No response

Logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions