mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-03-10 12:01:43 +00:00
tighten Host_Game_f() a bit more
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@997 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
985a16ee15
commit
9d2193f1d4
1 changed files with 2 additions and 2 deletions
|
@ -146,9 +146,9 @@ void Host_Game_f (void)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!strcmp(p, ".") || strstr(p, ".."))
|
if (!strcmp(p, ".") || strstr(p, "..") || strstr(p, "/") || strstr(p, "\\") || strstr(p, ":"))
|
||||||
{
|
{
|
||||||
Con_Printf ("Relative pathnames are not allowed.\n");
|
Con_Printf ("gamedir should be a single directory name, not a path\n");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue