handle @ characters in the address

This commit is contained in:
Riccardo Spagni 2015-01-23 20:21:43 +02:00
parent 714db0f5a1
commit 78f90a0f26
No known key found for this signature in database
GPG Key ID: 55432DF31CCD4FCD
1 changed files with 4 additions and 0 deletions

View File

@ -72,6 +72,8 @@ class Plugin(BasePlugin):
return False
url = str(self.win.payto_e.toPlainText())
url = url.replace('@', '.')
if not '.' in url:
return False
else:
@ -143,6 +145,8 @@ class Plugin(BasePlugin):
return
url = str(line1.text())
url = url.replace('@', '.')
if not '.' in url:
QMessageBox.warning(self.win, _('Error'), _('Invalid URL'), _('OK'))