Fixed hmtl-incompatible player names
This commit is contained in:
parent
0cca38b10b
commit
39404e52ac
1 changed files with 7 additions and 6 deletions
|
|
@ -1,3 +1,4 @@
|
||||||
|
using System.Web;
|
||||||
using CounterStrikeSharp.API.Core;
|
using CounterStrikeSharp.API.Core;
|
||||||
using CounterStrikeSharp.API.Modules.Admin;
|
using CounterStrikeSharp.API.Modules.Admin;
|
||||||
using CounterStrikeSharp.API.Modules.Menu;
|
using CounterStrikeSharp.API.Modules.Menu;
|
||||||
|
|
@ -33,7 +34,7 @@ namespace CS2_SimpleAdmin.Menus
|
||||||
IEnumerable<CCSPlayerController> players = Helper.GetValidPlayersWithBots();
|
IEnumerable<CCSPlayerController> players = Helper.GetValidPlayersWithBots();
|
||||||
foreach (CCSPlayerController player in players)
|
foreach (CCSPlayerController player in players)
|
||||||
{
|
{
|
||||||
string optionName = player.PlayerName;
|
string optionName = HttpUtility.HtmlEncode(player.PlayerName);
|
||||||
if (enableFilter != null && enableFilter(player) == false)
|
if (enableFilter != null && enableFilter(player) == false)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue