[s] Prevent filesystem access (#51174)

* Wow, imagine being the person who added this

* Overzealous
This commit is contained in:
Jordan Brown
2020-05-24 14:12:58 +12:00
committed by GitHub
parent 40bd1040d1
commit a1868690ce
+2
View File
@@ -4,6 +4,8 @@
src << browse_rsc(file)
/client/proc/browse_files(root="data/logs/", max_iterations=10, list/valid_extensions=list("txt","log","htm", "html"))
// wow why was this ever a parameter
root = "data/logs/"
var/path = root
for(var/i=0, i<max_iterations, i++)