Sanitize servercfgfile and lservercfgfile values with amx_cvar (bug 6578).

This commit is contained in:
Nicholas Hastings 2017-01-22 08:01:08 -05:00
parent ed672847f3
commit 7bb1849968

View File

@ -764,6 +764,15 @@ public cmdCvar(id, level, cid)
return PLUGIN_HANDLED
}
if (equali(arg, "servercfgfile") || equali(arg, "lservercfgfile"))
{
new pos = contain(arg2, ";")
if (pos != -1)
{
arg2[pos] = '^0'
}
}
new authid[32], name[MAX_NAME_LENGTH]
get_user_authid(id, authid, charsmax(authid))