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

View File

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