-
Notifications
You must be signed in to change notification settings - Fork 58
Open
Description
Environment
Not related
Reproduction
var ufo = require("ufo")
console.log(ufo.withQuery("/foo?page=a", { token: "sec;ret" }));
//should output /foo?page=a&secret=sec%3Bret
Describe the bug
ufo use encodeURI not encodeURIComponent to encode query value,therefore ';' is not encoded
see:
Line 32 in 666091d
return encodeURI("" + text).replace(ENC_PIPE_RE, "|"); |
Is there any special reason to use encodeURI?
Additional context
No response
Logs
No response
JvanderHeide
Metadata
Metadata
Assignees
Labels
No labels