It's 'filename', not 'name'.

Pointyhead to: Yamagi
This commit is contained in:
Yamagi Burmeister 2015-10-28 07:31:06 +01:00
parent 1d709e5e27
commit 7058052aea

View file

@ -457,7 +457,7 @@ CL_CheckOrDownloadFile(char *filename)
return true; return true;
} }
if (strstr(filename, "..") || strstr(name, ":") || (*name == '.') || (*name == '/')) if (strstr(filename, "..") || strstr(filename, ":") || (*filename == '.') || (*filename == '/'))
{ {
Com_Printf("Refusing to download a path with ..: %s\n", filename); Com_Printf("Refusing to download a path with ..: %s\n", filename);
return true; return true;