mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-31 05:00:35 +00:00
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:
parent
88eb9e118a
commit
725653ce2a
1 changed files with 0 additions and 2 deletions
|
@ -681,8 +681,6 @@ SV_BeginDownload_f (void)
|
||||||
if (strstr (name, "..") || !allow_download->int_val
|
if (strstr (name, "..") || !allow_download->int_val
|
||||||
// leading dot is no good
|
// leading dot is no good
|
||||||
|| *name == '.'
|
|| *name == '.'
|
||||||
// leading slash bad as well, must be in subdir
|
|
||||||
|| *name == '/'
|
|
||||||
// next up, skin check
|
// next up, skin check
|
||||||
|| (strncmp (name, "skins/", 6) == 0 && !allow_download_skins->int_val)
|
|| (strncmp (name, "skins/", 6) == 0 && !allow_download_skins->int_val)
|
||||||
// now models
|
// now models
|
||||||
|
|
Loading…
Reference in a new issue