Skip to content

Commit 4504e34

Browse files
fix: security problem (#220)
1 parent d95b8b5 commit 4504e34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/parseQuery.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function parseQuery(query) {
2626
}
2727

2828
const queryArgs = query.split(/[,&]/g);
29-
const result = {};
29+
const result = Object.create(null);
3030

3131
queryArgs.forEach((arg) => {
3232
const idx = arg.indexOf('=');

0 commit comments

Comments
 (0)