Merge pull request #1014

b73bcdf Receive page: QR code bug fix for invalid payment ids
This commit is contained in:
luigi1111 2017-12-17 12:37:06 -06:00
commit 93565d996c
No known key found for this signature in database
GPG key ID: F4ACA0183641E010

View file

@ -80,8 +80,8 @@ Rectangle {
s += (nfields++ ? "&" : "?")
s += "tx_amount=" + amount
}
var pid = paymentIdLine.text.trim()
if (pid !== "") {
var pid = paymentIdLine.text.trim().toLowerCase()
if (pid !== "" && walletManager.paymentIdValid(pid)) {
s += (nfields++ ? "&" : "?")
s += "tx_payment_id=" + pid
}