mirror of
https://github.com/daffyyyy/CS2-SimpleAdmin.git
synced 2026-09-27 20:17:04 +02:00
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.Modules.Admin;
|
||||
using CounterStrikeSharp.API.Modules.Menu;
|
||||
|
|
@ -33,7 +34,7 @@ namespace CS2_SimpleAdmin.Menus
|
|||
IEnumerable<CCSPlayerController> players = Helper.GetValidPlayersWithBots();
|
||||
foreach (CCSPlayerController player in players)
|
||||
{
|
||||
string optionName = player.PlayerName;
|
||||
string optionName = HttpUtility.HtmlEncode(player.PlayerName);
|
||||
if (enableFilter != null && enableFilter(player) == false)
|
||||
continue;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue