Skip to content

Commit

Permalink
fix: mitigate prototype pollution (#10781)
Browse files Browse the repository at this point in the history
  • Loading branch information
hund030 authored Jan 30, 2024
1 parent 523d796 commit 2c7d6e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion templates/csharp/sso-tab-ssr/wwwroot/auth-end.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@

// Parse hash parameters into key-value pairs
function getHashParameters() {
let hashParams = {};
let hashParams = Object.create(null);
location.hash
.substr(1)
.split("&")
Expand Down
2 changes: 1 addition & 1 deletion templates/csharp/sso-tab/wwwroot/auth-end.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@

// Parse hash parameters into key-value pairs
function getHashParameters() {
let hashParams = {};
let hashParams = Object.create(null);
location.hash
.substr(1)
.split("&")
Expand Down

0 comments on commit 2c7d6e2

Please sign in to comment.