Skip to content

Commit

Permalink
Merge pull request ddnet#9433 from TsFreddie/revert-validation-bypass
Browse files Browse the repository at this point in the history
Revert "Fix 'all' and 'me' not passing parameter validation in rcon"
  • Loading branch information
def- authored Dec 28, 2024
2 parents db8a396 + bb2048b commit c7a32ab
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/engine/shared/console.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -235,12 +235,6 @@ int CConsole::ParseArgs(CResult *pResult, const char *pFormat, bool IsColor)
if(!IsColor)
{
int Value;
if(str_comp(pResult->GetString(pResult->NumArguments() - 1), "all") == 0 ||
str_comp(pResult->GetString(pResult->NumArguments() - 1), "me") == 0)
{
Error = PARSEARGS_OK;
break;
}
if(!str_toint(pResult->GetString(pResult->NumArguments() - 1), &Value) ||
Value == std::numeric_limits<int>::max() || Value == std::numeric_limits<int>::min())
{
Expand Down

0 comments on commit c7a32ab

Please sign in to comment.