Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
Fixes location validation
Browse files Browse the repository at this point in the history
Resolves #13410

Auditors:

Test Plan:
  • Loading branch information
NejcZdovc committed Mar 9, 2018
1 parent 5d58f8d commit 8abc526
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/browser/api/ledger.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ signatureMax = Math.ceil(signatureMax * 1.5)

if (ipc) {
ipc.on(messages.LEDGER_PUBLISHER, (event, location) => {
if (!synopsis || event.sender.session === electron.session.fromPartition('default') || !tldjs.isValid(location)) {
if (!synopsis || event.sender.session === electron.session.fromPartition('default') || !tldjs.isValid(tldjs.getDomain(location))) {
event.returnValue = {}
return
}
Expand Down

0 comments on commit 8abc526

Please sign in to comment.