lib/instana/secrets.rb in instana-1.204.0.pre2 vs lib/instana/secrets.rb in instana-1.204.0.pre3
- old
+ new
@@ -9,10 +9,10 @@
def initialize(logger: ::Instana.logger)
@logger = logger
end
def remove_from_query(str, secret_values = Instana.agent.secret_values)
- return str unless secret_values
+ return str unless secret_values && str
begin
url = URI(str)
params = url.scheme ? CGI.parse(url.query || '') : CGI.parse(url.to_s)