Allow only 2k chars in LNURL comments

This commit is contained in:
nicolas.dorier 2022-02-21 13:27:02 +09:00
parent 557594e34d
commit 292d302a3d
No known key found for this signature in database
GPG Key ID: 6618763EF09186FE

View File

@ -306,6 +306,8 @@ namespace BTCPayServer
{
return NotFound();
}
if (comment is not null)
comment = comment.Substring(0, 2000);
var pmi = new PaymentMethodId(cryptoCode, PaymentTypes.LNURLPay);
var i = await _invoiceRepository.GetInvoice(invoiceId, true);