mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-17 18:40:02 +00:00
engine: common: allow cvar substituion in privileged mode only to prevent leaking sensitive data
This commit is contained in:
parent
a3ef6c955c
commit
cb0f513bf0
@ -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…
x
Reference in New Issue
Block a user