handle @ characters in the address
This commit is contained in:
parent
714db0f5a1
commit
78f90a0f26
|
@ -72,6 +72,8 @@ class Plugin(BasePlugin):
|
||||||
return False
|
return False
|
||||||
url = str(self.win.payto_e.toPlainText())
|
url = str(self.win.payto_e.toPlainText())
|
||||||
|
|
||||||
|
url = url.replace('@', '.')
|
||||||
|
|
||||||
if not '.' in url:
|
if not '.' in url:
|
||||||
return False
|
return False
|
||||||
else:
|
else:
|
||||||
|
@ -144,6 +146,8 @@ class Plugin(BasePlugin):
|
||||||
|
|
||||||
url = str(line1.text())
|
url = str(line1.text())
|
||||||
|
|
||||||
|
url = url.replace('@', '.')
|
||||||
|
|
||||||
if not '.' in url:
|
if not '.' in url:
|
||||||
QMessageBox.warning(self.win, _('Error'), _('Invalid URL'), _('OK'))
|
QMessageBox.warning(self.win, _('Error'), _('Invalid URL'), _('OK'))
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue