mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-02-15 08:31:03 +00:00
tighten Host_Game_f() a bit more
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@997 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
78fb4b0de5
commit
e9a6da6b0b
1 changed files with 2 additions and 2 deletions
|
@ -146,9 +146,9 @@ void Host_Game_f (void)
|
|||
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue