Skip to content

Commit

Permalink
fix: xss #630
Browse files Browse the repository at this point in the history
  • Loading branch information
MrSwitch committed Oct 22, 2020
1 parent 3d694a9 commit f41fa67
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/hello.js
Original file line number Diff line number Diff line change
Expand Up @@ -1304,7 +1304,9 @@ hello.utils.extend(hello.utils, {
// Redirect to the host
var path = _this.qs(state.oauth_proxy, p);

location.assign(path);
if (isValidUrl(path)) {
location.assign(path);
}

return;
}
Expand Down

0 comments on commit f41fa67

Please sign in to comment.