diff options
author | rautenberg <rautenberg@in-silico.ch> | 2015-12-21 12:31:35 +0100 |
---|---|---|
committer | rautenberg <rautenberg@in-silico.ch> | 2015-12-21 12:31:35 +0100 |
commit | b55a597378b4c643d0cf0f21910dcf97adfd3076 (patch) | |
tree | dcf4fc46a883a6121635e69e1b2bd5de8eba2c14 /lib | |
parent | 1070a35db8aa6414cf53bcce92c1355986cbc53b (diff) |
remove HTTP Basic Authentication credentials passed in URL in error messagesdevelopment
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rest-client-wrapper.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/rest-client-wrapper.rb b/lib/rest-client-wrapper.rb index 7011eca..f4febb5 100644 --- a/lib/rest-client-wrapper.rb +++ b/lib/rest-client-wrapper.rb @@ -71,6 +71,7 @@ module OpenTox cause = content[RDF::OT.errorCause].to_s raise if msg.size==0 && cause.size==0 # parsing failed rescue # parsing error failed, use complete content as message + uri = uri.gsub(/(http|https)\:\/\/[a-zA-Z0-9\-]+\:[a-zA-Z0-9]+\@/, "***@") msg = "Could not parse error response from rest call '#{method}' to '#{uri}':\n#{response}" cause = nil end |