Browse Source

engine: common: allow cvar substituion in privileged mode only to prevent leaking sensitive data

pull/2/head
Alibek Omarov 2 years ago
parent
commit
cb0f513bf0
  1. 2
      engine/common/cmd.c

2
engine/common/cmd.c

@ -984,7 +984,7 @@ static void Cmd_ExecuteStringWithPrivilegeCheck( const char *text, qboolean isPr
cmd_condlevel = 0; cmd_condlevel = 0;
// cvar value substitution // cvar value substitution
if( CVAR_TO_BOOL( cmd_scripting )) if( CVAR_TO_BOOL( cmd_scripting ) && isPrivileged )
{ {
while( *text ) while( *text )
{ {

Loading…
Cancel
Save