diff --git a/ArchiSteamFarm/Steam/Cards/CardsFarmer.cs b/ArchiSteamFarm/Steam/Cards/CardsFarmer.cs index d485a8f3d..d85c413c1 100644 --- a/ArchiSteamFarm/Steam/Cards/CardsFarmer.cs +++ b/ArchiSteamFarm/Steam/Cards/CardsFarmer.cs @@ -25,7 +25,6 @@ using System.Collections.Generic; using System.Collections.Immutable; using System.Globalization; using System.Linq; -using System.Net; using System.Text.RegularExpressions; using System.Threading; using System.Threading.Tasks; @@ -670,7 +669,7 @@ public sealed class CardsFarmer : IAsyncDisposable { continue; } - name = WebUtility.HtmlDecode(name[nameStartIndex..nameEndIndex]); + name = Uri.UnescapeDataString(name[nameStartIndex..nameEndIndex]); if (string.IsNullOrEmpty(name)) { Bot.ArchiLogger.LogNullError(name); diff --git a/ArchiSteamFarm/Steam/Integration/SteamUtilities.cs b/ArchiSteamFarm/Steam/Integration/SteamUtilities.cs index f50724c56..615010967 100644 --- a/ArchiSteamFarm/Steam/Integration/SteamUtilities.cs +++ b/ArchiSteamFarm/Steam/Integration/SteamUtilities.cs @@ -21,7 +21,6 @@ using System; using System.Collections.Generic; -using System.Net; using ArchiSteamFarm.Core; using SteamKit2; @@ -63,7 +62,7 @@ internal static class SteamUtilities { } // Apparently steam expects client to decode sent HTML - gameName = WebUtility.HtmlDecode(gameName); + gameName = Uri.UnescapeDataString(gameName); result[packageID] = gameName; }