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 += "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
}