Fixes a filesystem viewing exploit

This commit is contained in:
AffectedArc07
2020-05-22 21:46:38 +01:00
parent 7ad36060f3
commit 9be03f43f3
+2
View File
@@ -18,6 +18,8 @@
src << browse_rsc(file)
/client/proc/browse_files(root="data/logs/", max_iterations=10, list/valid_extensions=list(".txt",".log",".htm"))
// wow why was this ever a parameter
root = "data/logs/"
var/path = root
for(var/i=0, i<max_iterations, i++)