Fixes a ton of security issues (#19005)

This commit is contained in:
AffectedArc07
2022-09-10 14:12:16 +01:00
committed by GitHub
parent 474fc426a7
commit 279ee1dc12
13 changed files with 38 additions and 17 deletions
@@ -71,7 +71,7 @@
// now generate name
var/filename = "sound/instruments/[cached_legacy_dir]/[ascii2text(note + 64)][acc][oct].[cached_legacy_ext]"
var/soundfile = file(filename)
var/soundfile = wrap_file(filename)
// make sure the note exists
var/cached_fexists = valid_files[filename]
if(!isnull(cached_fexists))