lib/linux_admin/common.rb in linux_admin-0.2.0 vs lib/linux_admin/common.rb in linux_admin-0.2.1
- old
+ new
@@ -44,10 +44,10 @@
def sanitize(params)
return [] if params.blank?
params.collect do |k, v|
v = case v
- when Array; v.collect(&:shellescape)
+ when Array; v.collect {|i| i.to_s.shellescape}
when NilClass; v
else v.to_s.shellescape
end
[k, v]
end