Skip to content
This repository
Browse code

Fix escaping of values for older versions of Shellwords.

  • Loading branch information...
commit 70eb91158ce8a89d39a3d7bbfc3feae9f55ada1a 1 parent b62af6a
janfri authored May 31, 2012
3  Changelog
... ...
@@ -1,3 +1,6 @@
  1
+v1.4.4
  2
+- Fix escaping of values for older versions of Shellwords.
  3
+
1 4
 v1.4.3
2 5
 - Fixing rubyforge bug [#29596] (Quotes in values)
3 6
   Thanks to Michael Grove for reporting
4  lib/mini_exiftool.rb
@@ -32,7 +32,7 @@ class MiniExiftool
32 32
   attr_reader :filename
33 33
   attr_accessor :numerical, :composite, :convert_encoding, :errors, :timestamps
34 34
 
35  
-  VERSION = '1.4.3'
  35
+  VERSION = '1.4.4'
36 36
 
37 37
   # +opts+ support at the moment
38 38
   # * <code>:numerical</code> for numerical values, default is +false+
@@ -154,7 +154,7 @@ def save
154 154
       arr_val.map! {|e| convert e}
155 155
       tag_params = ''
156 156
       arr_val.each do |v|
157  
-        tag_params << %Q(-#{original_tag}=#{Shellwords.escape(v)} )
  157
+        tag_params << %Q(-#{original_tag}=#{Shellwords.escape(v.to_s)} )
158 158
       end
159 159
       opt_params = ''
160 160
       opt_params << (arr_val.detect {|x| x.kind_of?(Numeric)} ? '-n ' : '')

0 notes on commit 70eb911

Please sign in to comment.
Something went wrong with that request. Please try again.