We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0bf551 commit 02ec36eCopy full SHA for 02ec36e
lib/net/ldap.rb
@@ -1197,7 +1197,9 @@ def paged_searches_supported?
1197
1198
# Mask auth password
1199
def inspect
1200
- super.gsub @auth[:password], "*******" if @auth[:password]
+ inspected = super
1201
+ inspected.gsub! @auth[:password], "*******" if @auth[:password]
1202
+ inspected
1203
end
1204
1205
private
test/test_ldap.rb
@@ -60,6 +60,7 @@ def test_instrument_search_with_size
60
61
def test_obscure_auth
62
password = "opensesame"
63
+ assert_include(@subject.inspect, "anonymous")
64
@subject.auth "joe_user", password
65
assert_not_include(@subject.inspect, password)
66
0 commit comments