Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Dec 17, 2025. It is now read-only.

Commit 4504e34

Browse filesBrowse files
fix: security problem (#220)
1 parent d95b8b5 commit 4504e34
Copy full SHA for 4504e34

1 file changed

+1-1Lines changed: 1 addition & 1 deletion

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎lib/parseQuery.js‎

Copy file name to clipboardExpand all lines: lib/parseQuery.js
+1-1Lines changed: 1 addition & 1 deletion
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.