Delete the check in download file names for a leading slash, since

it's harmless and some maps (such as engwar1) use it.  (the map may
be considered broken because of it, but everything ELSE works fine
with a leading slash, since it's relative anyway)
This commit is contained in:
Adam Olsen 2001-07-26 15:50:54 +00:00
parent 88eb9e118a
commit 725653ce2a

View file

@ -681,8 +681,6 @@ SV_BeginDownload_f (void)
if (strstr (name, "..") || !allow_download->int_val
// leading dot is no good
|| *name == '.'
// leading slash bad as well, must be in subdir
|| *name == '/'
// next up, skin check
|| (strncmp (name, "skins/", 6) == 0 && !allow_download_skins->int_val)
// now models