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

@ -763,6 +763,15 @@ public cmdCvar(id, level, cid)
console_print(id, "[AMXX] %L", id, "CVAR_IS", arg, arg2)
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]