Skip to content
This repository has been archived by the owner on Mar 21, 2023. It is now read-only.

Commit

Permalink
Add urlencoding.
Browse files Browse the repository at this point in the history
  • Loading branch information
0xInception committed Dec 7, 2022
1 parent 6699be2 commit 834b753
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/LobbyReveal/LobbyReveal.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
<HintPath>..\..\deps\Ekko.dll</HintPath>
</Reference>
<Reference Include="System.Net.Http" />
<Reference Include="System.Web" />
</ItemGroup>

</Project>
2 changes: 2 additions & 0 deletions src/LobbyReveal/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
using System.Text.RegularExpressions;
using System.Threading;
using System.Threading.Tasks;
using System.Web;
using Ekko;
using Newtonsoft.Json;

Expand Down Expand Up @@ -72,6 +73,7 @@ private static void Refresh()
Console.WriteLine("-------------------------------");
Console.WriteLine($"Client {i+1} (press {i+1} to open opgg)");
Console.WriteLine($"Current summoners: {string.Join(",", _handlers[i].GetSummoners())}");
Console.WriteLine($"Current summoners encoded: {HttpUtility.UrlEncode(string.Join(",", _handlers[i].GetSummoners()))}");
Console.WriteLine();
}
_update = false;
Expand Down

0 comments on commit 834b753

Please sign in to comment.