pointofsale: generated bitcoin url might contain invalid characters
authorGergely Imreh <imrehg@gmail.com>
Tue, 26 Nov 2013 04:31:50 +0000 (12:31 +0800)
committerGergely Imreh <imrehg@gmail.com>
Tue, 26 Nov 2013 04:31:50 +0000 (12:31 +0800)
commitcbfa9212766a5ce79239556c91103d5461de2aff
treea01e930f76e6de4da6bef4097f98a50deda5a963
parent5b3603f3e4fbb9f64c80c3f7c037ef2dc8ab0a36
pointofsale: generated bitcoin url might contain invalid characters

The bitcoin invoice url generated for the QR code might contain illegal
characters because the labels can have any text. In default it already
contains spaces (ie. the naming convention "Invoice - 0001").

The invalid URL did confuse e.g. the Bitcoin Wallet Android app, that
couldn't read bitcoin addresses from the generated QR code.

This is fixed by escaping the label text before displaying it as a
QR code.
plugins/pointofsale.py