Skip to content

Commit

Permalink
fixed exploit with names
Browse files Browse the repository at this point in the history
  • Loading branch information
nikooo777 committed May 8, 2017
1 parent 85c2d35 commit fd6318d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Binary file modified csgo/addons/sourcemod/plugins/ckSurf.smx
Binary file not shown.
6 changes: 5 additions & 1 deletion csgo/addons/sourcemod/scripting/ckSurf/misc.sp
Original file line number Diff line number Diff line change
Expand Up @@ -2465,8 +2465,12 @@ public void SpecListMenuDead(int client) // What Spectators see
if (ObservedUser == ObservedUser2)
{
count++;
//strip backslashes from names (causes lags and crashes?)
char cleanName[MAX_NAME_LENGTH];
Format(cleanName, sizeof(cleanName),"%N",x);
ReplaceString(cleanName,sizeof(cleanName),"\\","",false);
if (count < 6)
Format(sSpecs, 512, "%s%N\n", sSpecs, x);
Format(sSpecs, 512, "%s%s\n", sSpecs, cleanName);
}
if (count == 6)
Format(sSpecs, 512, "%s...", sSpecs);
Expand Down

0 comments on commit fd6318d

Please sign in to comment.