mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 14:04:26 +01:00
This is caused by a weird buggy behavior from ASP.NET Core concerning path value decoding. (More information on https://github.com/dotnet/aspnetcore/issues/14170#issuecomment-533342396) This hasn't been fixed for a while, and the dotnet team keeps reporting it over and over.
This commit is contained in:
@@ -265,8 +265,11 @@ namespace BTCPayServer
|
||||
break;
|
||||
}
|
||||
|
||||
var escapedItemId = Extensions.UnescapeBackSlashUriString(itemCode);
|
||||
var item = items.FirstOrDefault(item1 =>
|
||||
item1.Id.Equals(itemCode, StringComparison.InvariantCultureIgnoreCase));
|
||||
item1.Id.Equals(itemCode, StringComparison.InvariantCultureIgnoreCase) ||
|
||||
item1.Id.Equals(escapedItemId, StringComparison.InvariantCultureIgnoreCase));
|
||||
|
||||
if (item is null ||
|
||||
item.Inventory <= 0 ||
|
||||
(item.PaymentMethods?.Any() is true &&
|
||||
|
||||
Reference in New Issue
Block a user