handle @ characters in the address
This commit is contained in:
@@ -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:
|
||||||
@@ -143,6 +145,8 @@ class Plugin(BasePlugin):
|
|||||||
return
|
return
|
||||||
|
|
||||||
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'))
|
||||||
|
|||||||
Reference in New Issue
Block a user