aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMarkus Doits <markus.doits@stellenticket.de>2016-07-25 16:55:42 +0200
committerMarkus Doits <markus.doits@stellenticket.de>2016-07-25 16:55:42 +0200
commit13c41e366ef7a079b665543aca58c94c8f15c49a (patch)
tree63cb3427cdd187e2c770e8099ff265bb6b92d4eb
parent27f9fef3ab599ca286876ffed5d832dea3916c31 (diff)
downloadpronto-hlint-13c41e366ef7a079b665543aca58c94c8f15c49a.tar.gz
pronto-hlint-13c41e366ef7a079b665543aca58c94c8f15c49a.tar.zst
pronto-hlint-13c41e366ef7a079b665543aca58c94c8f15c49a.zip
escape file path before passing it to shell
-rw-r--r--lib/pronto/eslint.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pronto/eslint.rb b/lib/pronto/eslint.rb
index fa4261d..d57a408 100644
--- a/lib/pronto/eslint.rb
+++ b/lib/pronto/eslint.rb
@@ -16,7 +16,7 @@ module Pronto
16 16
17 offences = 17 offences =
18 Dir.chdir(@_repo_path) do 18 Dir.chdir(@_repo_path) do
19 JSON.parse(`eslint #{patch.new_file_full_path} -f json`) 19 JSON.parse(`eslint #{Shellwords.escape(patch.new_file_full_path)} -f json`)
20 end 20 end
21 21
22 offences = 22 offences =