Bitcoin URL Handling
Update Bitcoin URL handling to reject URLs with duplicate keys issue: #649
This commit is contained in:
@@ -948,7 +948,11 @@ class ElectrumWindow(QMainWindow):
|
||||
|
||||
|
||||
def set_url(self, url):
|
||||
address, amount, label, message, signature, identity, url = util.parse_url(url)
|
||||
try:
|
||||
address, amount, label, message, signature, identity, url = util.parse_url(url)
|
||||
except Exception:
|
||||
QMessageBox.warning(self, _('Error'), _('Invalid bitcoin URL'), _('OK'))
|
||||
return
|
||||
|
||||
try:
|
||||
if amount and self.base_unit() == 'mBTC': amount = str( 1000* Decimal(amount))
|
||||
|
||||
Reference in New Issue
Block a user