mirror of
https://git.code.sf.net/p/quake/quake2forge
synced 2025-03-29 22:01:21 +00:00
Fix win32 path exploit in download command
This commit is contained in:
parent
e1326ba6f7
commit
805aec460b
1 changed files with 1 additions and 1 deletions
|
@ -294,7 +294,7 @@ void SV_BeginDownload_f(void){
|
|||
|
||||
// hacked by zoid to allow more conrol over download
|
||||
// first off, no .. or global allow check
|
||||
if(strstr(name, "..") || !allow_download->value
|
||||
if(strstr(name, "..") || strstr(name, "\\/") || !allow_download->value
|
||||
// leading dot is no good
|
||||
|| *name == '.'
|
||||
// leading slash bad as well, must be in subdir
|
||||
|
|
Loading…
Reference in a new issue