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; }