Skip to content

Commit

Permalink
Disable executing language.cfg
Browse files Browse the repository at this point in the history
It doesn't exist and could be abused in downloaded pk3 files.
  • Loading branch information
ensiform committed Jan 14, 2024
1 parent b6c9acd commit e91ce99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/qcommon/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -3058,8 +3058,8 @@ void Com_ExecuteCfg(qboolean safeMode)
{
Cbuf_ExecuteText(EXEC_NOW, "exec default.cfg\n");
Cbuf_Execute(); // Always execute after exec to prevent text buffer overflowing
Cbuf_ExecuteText(EXEC_NOW, "exec language.cfg\n" ); // NERVE - SMF
Cbuf_Execute(); // Always execute after exec to prevent text buffer overflowing
//Cbuf_ExecuteText(EXEC_NOW, "exec language.cfg\n" ); // NERVE - SMF
//Cbuf_Execute(); // Always execute after exec to prevent text buffer overflowing

// skip the etconfig.cfg if "safe" is on the command line
if ( !safeMode ) {
Expand Down

0 comments on commit e91ce99

Please sign in to comment.