Skip to content

Commit 4b593a2

Browse files
authored
#12 Added URI double-escape to fix issue with search
Added URI double-escape to fix issue with search
2 parents a807468 + fa9eb57 commit 4b593a2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

craftersmine.SteamGridDB.Net/SteamGridDb.cs

+1
Original file line numberDiff line numberDiff line change
@@ -1342,6 +1342,7 @@ public async Task<bool> DeleteIconAsync(int iconId)
13421342
/// <exception cref="SteamGridDbException">When unknown exception occurred in request</exception>
13431343
public async Task<SteamGridDbGame[]> SearchForGamesAsync(string searchTerm)
13441344
{
1345+
searchTerm = Uri.EscapeDataString(Uri.EscapeDataString(searchTerm));
13451346
var response = await Get($"search/autocomplete/{searchTerm}");
13461347
if (response.Data != null) return response.Data.ToObject<SteamGridDbGame[]>();
13471348
return null;

0 commit comments

Comments
 (0)