mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-01 14:10:53 +00:00
Use Uri.UnescapeDataString() instead of WebUtility.HtmlDecode()
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user