mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-31 05:00:35 +00:00
replace strncmp (name, "maps/", 6) with strncmp (name, "maps/", 5)
This commit is contained in:
parent
64a2f8d277
commit
8fc5e5e372
1 changed files with 1 additions and 1 deletions
|
@ -690,7 +690,7 @@ SV_BeginDownload_f (void)
|
||||||
// now sounds
|
// now sounds
|
||||||
|| (strncmp (name, "sound/", 6) == 0 && !allow_download_sounds->int_val)
|
|| (strncmp (name, "sound/", 6) == 0 && !allow_download_sounds->int_val)
|
||||||
// now maps (note special case for maps, must not be in pak)
|
// now maps (note special case for maps, must not be in pak)
|
||||||
|| (strncmp (name, "maps/", 6) == 0 && !allow_download_maps->int_val)
|
|| (strncmp (name, "maps/", 5) == 0 && !allow_download_maps->int_val)
|
||||||
// MUST be in a subdirectory
|
// MUST be in a subdirectory
|
||||||
|| !strstr (name, "/")) { // don't allow anything with .. path
|
|| !strstr (name, "/")) { // don't allow anything with .. path
|
||||||
ClientReliableWrite_Begin (host_client, svc_download, 4);
|
ClientReliableWrite_Begin (host_client, svc_download, 4);
|
||||||
|
|
Loading…
Reference in a new issue