lib/new_relic/agent/obfuscator.rb in newrelic_rpm-9.0.0 vs lib/new_relic/agent/obfuscator.rb in newrelic_rpm-9.1.0

- old
+ new

@@ -31,10 +31,10 @@ end def encode(text) return text unless key_bytes - encoded = String.new('') + encoded = +'' encoded.force_encoding('binary') if encoded.respond_to?(:force_encoding) index = 0 text.each_byte do |byte| encoded.concat((byte ^ key_bytes[index % key_bytes.length])) index += 1