-
-
Notifications
You must be signed in to change notification settings - Fork 41
Closed
Description
Crash occured when %ea%ba%5a%ba is parsed by decodeUriComponent
This function is used in some other nodejs projects for decoding query strings and hash strings in url, for example the hash # kun%ea%ba%5a%ba is valid and should be parsed correctly as { ' kun%ea%ba%5a%ba': null }
For example in chrome's development tools' console the url https://google.com# kun%ea%ba%5a%ba can be parsed without problems:
const url = new URL("https://google.com# kun%ea%ba%5a%ba");
url
Code to reproduce
const decodeUriComponent = require('decode-uri-component');
var x = decodeUriComponent('%ea%ba%5a%ba');
console.log(x);
Results
TypeError: decodeComponents(...).join is not a function
Metadata
Metadata
Assignees
Labels
No labels
