From e9a6da6b0b3ee06414d234c8b256113d388513e9 Mon Sep 17 00:00:00 2001 From: sezero Date: Mon, 8 Sep 2014 16:02:58 +0000 Subject: [PATCH] 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 --- quakespasm/Quake/host_cmd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/quakespasm/Quake/host_cmd.c b/quakespasm/Quake/host_cmd.c index ed8638f9..40956219 100644 --- a/quakespasm/Quake/host_cmd.c +++ b/quakespasm/Quake/host_cmd.c @@ -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; }