use the correct Electrum alias syntax
This commit is contained in:
@@ -113,12 +113,12 @@ class Plugin(BasePlugin):
|
|||||||
|
|
||||||
url = url.replace('@', '.') # support email-style addresses, per the OA standard
|
url = url.replace('@', '.') # support email-style addresses, per the OA standard
|
||||||
|
|
||||||
if not '.' in url:
|
if ('.' in url) and (not '<' in url) and (not ' ' in url):
|
||||||
return False
|
|
||||||
else:
|
|
||||||
if not OA_READY: # handle a failed DNSPython load
|
if not OA_READY: # handle a failed DNSPython load
|
||||||
QMessageBox.warning(self.win, _('Error'), 'Could not load DNSPython libraries, please ensure they are available and/or Electrum has been built correctly', _('OK'))
|
QMessageBox.warning(self.win, _('Error'), 'Could not load DNSPython libraries, please ensure they are available and/or Electrum has been built correctly', _('OK'))
|
||||||
return False
|
return False
|
||||||
|
else:
|
||||||
|
return False
|
||||||
|
|
||||||
data = self.resolve(url)
|
data = self.resolve(url)
|
||||||
|
|
||||||
@@ -126,7 +126,7 @@ class Plugin(BasePlugin):
|
|||||||
return True
|
return True
|
||||||
|
|
||||||
(address, name) = data
|
(address, name) = data
|
||||||
self.win.payto_e.setText(address)
|
self.win.payto_e.setText(url + ' <' + address + '>')
|
||||||
|
|
||||||
if not self.validate_dnssec(url):
|
if not self.validate_dnssec(url):
|
||||||
msgBox = QMessageBox()
|
msgBox = QMessageBox()
|
||||||
|
|||||||
Reference in New Issue
Block a user