mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-22 22:25:28 +01:00
Bugfixing problem with currency comparison
This commit is contained in:
parent
0818abe233
commit
858d56d20c
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue