left hand side. And if that object is just a copy (i.e. reference to) of
another object, bad things like on-the-fly modification of the
orvos_login_base configuration value occur...
This fixes the multiplication of return_to parameters on every call to
the login url.
uri = self.orvos_v1_base.sub(%r{/orvos/v\d+.*}, '/login')
end
if params.size > 0
- uri << '?' << params.collect { |k,v|
+ uri += '?' << params.collect { |k,v|
CGI.escape(k.to_s) + '=' + CGI.escape(v.to_s)
}.join('&')
end