Bugfixing problem with currency comparison

This commit is contained in:
rockstardev 2020-09-14 00:04:56 -05:00 committed by Kukks
parent 0818abe233
commit 858d56d20c

View file

@ -22,7 +22,7 @@ namespace BTCPayServer.Services.Shopify
{
dynamic transaction = transactions[0];
if (currency != null && currency.Equals(transaction.currency, StringComparison.OrdinalIgnoreCase))
if (currency != null && currency.ToUpperInvariant().Trim() != transaction.currency.ToString().ToUpperInvariant().Trim())
{
// because of parent_id present, currency will always be the one from parent transaction
// malicious attacker could potentially exploit this by creating invoice