tMerge pull request #462 from imrehg/posfix - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 46fe3dd185a0d68f9d8a7ec2ebdc135e7119639e DIR parent 5b3603f3e4fbb9f64c80c3f7c037ef2dc8ab0a36 HTML Author: ThomasV <thomasv1@gmx.de> Date: Mon, 25 Nov 2013 21:43:04 -0800 Merge pull request #462 from imrehg/posfix pointofsale: generated bitcoin url might contain invalid characters Diffstat: M plugins/pointofsale.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) --- DIR diff --git a/plugins/pointofsale.py b/plugins/pointofsale.py t@@ -1,6 +1,7 @@ import re import platform from decimal import Decimal +from urllib import quote from PyQt4.QtGui import * from PyQt4.QtCore import * t@@ -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 )