Skip to content

Commit

Permalink
Sanitize servercfgfile and lservercfgfile values with amx_cvar (bug 6…
Browse files Browse the repository at this point in the history
…578).
  • Loading branch information
psychonic committed Jan 22, 2017
1 parent ed67284 commit 7bb1849
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions plugins/admincmd.sma
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down

0 comments on commit 7bb1849

Please sign in to comment.