mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-28 16:01:30 +00:00
handle @ characters in the address
This commit is contained in:
parent
714db0f5a1
commit
78f90a0f26
1 changed files with 4 additions and 0 deletions
|
@ -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'))
|
||||||
|
|
Loading…
Add table
Reference in a new issue