Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Don't inspect strings

  • Loading branch information...
commit 856b1d632fb28ad0daddca7fe1de18a578964a3e 1 parent b8fe3d4
Ismael Celis authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  lib/em_airbrake.rb
3  lib/em_airbrake.rb
View
@@ -61,7 +61,8 @@ def xml_vars_for(builder, hash)
if value.respond_to?(:to_hash)
builder.var(:key => key.to_s){|b| xml_vars_for(b, value.to_hash) }
else
- builder.var(value.inspect, :key => key.to_s)
+ v = value.is_a?(String) ? value : value.inspect
+ builder.var(v, :key => key.to_s)
end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.