lib/ffprober/parsers/file.rb in ffprober-0.4.3 vs lib/ffprober/parsers/file.rb in ffprober-0.4.4

- old
+ new

@@ -8,10 +8,10 @@ @file_to_parse = file_to_parse end def load - json_output = `#{ffprobe_finder.path} #{options} '#{@file_to_parse}'` + json_output = `#{ffprobe_finder.path} #{options} #{Shellwords.escape(@file_to_parse)}` Ffprober::Parsers::Json.new(json_output) end private