From 1725bce4528a73f0985a3f25be25a24adf47cc23 Mon Sep 17 00:00:00 2001 From: HummyPkg Date: Mon, 13 Mar 2017 18:15:55 +0000 Subject: [PATCH] Prevent subst from processing commands or variables in filenames --- webif/cgi-bin/status.jim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webif/cgi-bin/status.jim b/webif/cgi-bin/status.jim index 9ea386b2..84725117 100755 --- a/webif/cgi-bin/status.jim +++ b/webif/cgi-bin/status.jim @@ -83,7 +83,8 @@ proc get_data {} { regsub -- { \([^\)]+\)$} $line "" line set ext [file extension $line] if {$ext ni $exts} continue - set file [subst [string range $line 1 end]] + set file [subst -nocommands -novariables \ + [string range $line 1 end]] # Skip HD-Fox TSR buffer if {$file eq "/media/drive1/.tsr/0.ts"} { continue