Sanitize servercfgfile and lservercfgfile values with amx_cvar (bug 6578).
This commit is contained in:
parent
ed672847f3
commit
7bb1849968
@ -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]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user