diff options
-rw-r--r-- | tinydns-model.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tinydns-model.lua b/tinydns-model.lua index 6b77acc..602f416 100644 --- a/tinydns-model.lua +++ b/tinydns-model.lua @@ -309,7 +309,7 @@ function remove_file(self, path, userid) if not (fs.is_file(path)) then errtxt = "File doesn't exist!" elseif (validfilename(path)) then - local cmd, errors = io.popen( "/bin/rm " .. path, r ) + local cmd, errors = io.popen( "/bin/rm " .. format.escapespecialcharacters(path), r ) local cmdoutput = cmd:read("*a") cmd:close() success = "File Deleted" |