Skip to content

Commit 87c1fe9

Browse files
committed
♻️ Ignore unknown keyword args for SASL EXTERNAL
1 parent 0b38655 commit 87c1fe9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/net/imap/sasl/external_authenticator.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class ExternalAuthenticator
2929
# #authzid is an optional identity to act as or on behalf of.
3030
#
3131
# Any other keyword parameters are quietly ignored.
32-
def initialize(authzid: nil)
32+
def initialize(authzid: nil, **)
3333
@authzid = authzid&.to_str&.encode "UTF-8"
3434
if @authzid&.match?(/\u0000/u) # also validates UTF8 encoding
3535
raise ArgumentError, "contains NULL"

0 commit comments

Comments
 (0)