Skip to content

Commit

Permalink
forgot to shell escape path in splitter
Browse files Browse the repository at this point in the history
  • Loading branch information
Dhruv Bansal committed Sep 20, 2013
1 parent c025a29 commit ff42f04
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def file_dumper original
# @return [String]
def split_command original, copy
condition = '--' + (split_by_bytes? ? 'bytes' : 'lines') + '=' + (split_by_bytes? ? settings[:bytes] : settings[:lines]).to_s
"#{file_dumper(original).dump_command} | #{split_program} #{condition} --numeric-suffixes --suffix-length=#{suffix_length} - #{suffix_stem_for(copy)} 2>&1"
"#{file_dumper(original).dump_command} | #{split_program} #{condition} --numeric-suffixes --suffix-length=#{suffix_length} - #{Shellwords.escape(suffix_stem_for(copy))} 2>&1"
end

# Return the stem of the suffix used for each produced output
Expand Down

0 comments on commit ff42f04

Please sign in to comment.