From c4ffed8a441fb0f16f0d206218b3580ae4460797 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 13 Apr 2015 00:55:14 +0000 Subject: escape INFILE and related environment variables We may expand them, so ensure they're properly escaped, first for use in shell snippets. --- lib/dtas/source/av_ff_common.rb | 2 +- lib/dtas/source/sox.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/dtas/source') diff --git a/lib/dtas/source/av_ff_common.rb b/lib/dtas/source/av_ff_common.rb index 189e135..9f29b02 100644 --- a/lib/dtas/source/av_ff_common.rb +++ b/lib/dtas/source/av_ff_common.rb @@ -158,7 +158,7 @@ module DTAS::Source::AvFfCommon # :nodoc: e["PROBE"] = @probe_harder ? @probe_harder.join(' ') : nil # make sure these are visible to the source command... - e["INFILE"] = @infile + e["INFILE"] = xs(@infile) e["AMAP"] = amap e["SSPOS"] = sspos e["RGFX"] = rg_state.effect(self) || nil diff --git a/lib/dtas/source/sox.rb b/lib/dtas/source/sox.rb index 91a3c40..6f02f99 100644 --- a/lib/dtas/source/sox.rb +++ b/lib/dtas/source/sox.rb @@ -78,7 +78,7 @@ class DTAS::Source::Sox # :nodoc: def src_spawn(player_format, rg_state, opts) raise "BUG: #{self.inspect}#src_spawn called twice" if @to_io e = @env.merge!(player_format.to_env) - e["INFILE"] = @infile + e["INFILE"] = xs(@infile) # make sure these are visible to the "current" command... e["TRIMFX"] = trimfx -- cgit v1.2.3-24-ge0c7