Browse Source

Update init.lua

pull/15/head
10sr 8 years ago
committed by GitHub
parent
commit
5699cdb10d
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      micro/init.lua

+ 2
- 0
micro/init.lua View File

@@ -2,6 +2,8 @@


local function getProperties(fullpath) local function getProperties(fullpath)
-- TODO: Avoid command injection vulnerability -- 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 file = io.popen("editorconfig '" .. fullpath .. "'", "r")
local output = file:read("*all") local output = file:read("*all")
file:close() file:close()


Loading…
Cancel
Save