From 5699cdb10dfdf93be8d1ae74bc94c23857ebf49a Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Fri, 4 Nov 2016 22:15:52 +0900 Subject: [PATCH] Update init.lua --- micro/init.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/micro/init.lua b/micro/init.lua index 60f3fd3..65f0079 100644 --- a/micro/init.lua +++ b/micro/init.lua @@ -2,6 +2,8 @@ local function getProperties(fullpath) -- TODO: Avoid command injection vulnerability + -- For example, following command will create file b.txt + -- $ micro "a.txt'; touch 'b.txt" local file = io.popen("editorconfig '" .. fullpath .. "'", "r") local output = file:read("*all") file:close()