Sanitize servercfgfile and lservercfgfile values with amx_cvar (bug 6578).
This commit is contained in:
parent
ed672847f3
commit
7bb1849968
@ -764,6 +764,15 @@ public cmdCvar(id, level, cid)
|
|||||||
return PLUGIN_HANDLED
|
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]
|
new authid[32], name[MAX_NAME_LENGTH]
|
||||||
|
|
||||||
get_user_authid(id, authid, charsmax(authid))
|
get_user_authid(id, authid, charsmax(authid))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user