mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-25 06:15:37 +03:00
Trim target in amx_ban to prevent bypassing equali checks
This commit is contained in:
parent
919af60ca9
commit
ab46adc91c
@ -326,6 +326,7 @@ public cmdAddBan(id, level, cid)
|
||||
read_argv(2, minutes, charsmax(minutes))
|
||||
read_argv(3, reason, charsmax(reason))
|
||||
|
||||
trim(arg);
|
||||
|
||||
if (!(get_user_flags(id) & ADMIN_RCON))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user