Use Uri.UnescapeDataString() instead of WebUtility.HtmlDecode()

This commit is contained in:
JustArchi
2022-06-18 14:15:14 +02:00
parent ffdc0e89e8
commit 5f803cf725
2 changed files with 2 additions and 4 deletions

View File

@@ -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);

View File

@@ -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;
}