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

Commit

Permalink
Merge pull request #13411 from NejcZdovc/hotfix/#13410-tldjs
Browse files Browse the repository at this point in the history
Fixes location validation
  • Loading branch information
NejcZdovc committed Mar 11, 2018
2 parents 5d58f8d + 8abc526 commit 9d5977a
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 9d5977a

Please sign in to comment.