Permalink
Browse files

forgot to shell escape path in splitter

  • Loading branch information...
1 parent c025a29 commit ff42f04539e84f8a935a280c40280d4f202ab605 Dhruv Bansal committed Sep 20, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/wukong-load/syncers/prepare_syncer/splitting_handler.rb
@@ -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

0 comments on commit ff42f04

Please sign in to comment.