mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-31 09:21:39 +00:00
Merge pull request #462 from imrehg/posfix
pointofsale: generated bitcoin url might contain invalid characters
This commit is contained in:
commit
46fe3dd185
1 changed files with 5 additions and 2 deletions
|
@ -1,6 +1,7 @@
|
|||
import re
|
||||
import platform
|
||||
from decimal import Decimal
|
||||
from urllib import quote
|
||||
|
||||
from PyQt4.QtGui import *
|
||||
from PyQt4.QtCore import *
|
||||
|
@ -89,9 +90,11 @@ class QR_Window(QWidget):
|
|||
if self.amount is not None:
|
||||
msg += '?amount=%s'%(str( self.amount))
|
||||
if self.label is not None:
|
||||
msg += '&label=%s'%(self.label)
|
||||
encoded_label = quote(self.label)
|
||||
msg += '&label=%s'%(encoded_label)
|
||||
elif self.label is not None:
|
||||
msg += '?label=%s'%(self.label)
|
||||
encoded_label = quote(self.label)
|
||||
msg += '?label=%s'%(encoded_label)
|
||||
|
||||
self.qrw.set_addr( msg )
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue