Skip to content

Commit

Permalink
♻️ Ignore unknown keyword args for SASL EXTERNAL
Browse files Browse the repository at this point in the history
  • Loading branch information
nevans committed Sep 20, 2023
1 parent 0b38655 commit 87c1fe9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/net/imap/sasl/external_authenticator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class ExternalAuthenticator
# #authzid is an optional identity to act as or on behalf of.
#
# Any other keyword parameters are quietly ignored.
def initialize(authzid: nil)
def initialize(authzid: nil, **)
@authzid = authzid&.to_str&.encode "UTF-8"
if @authzid&.match?(/\u0000/u) # also validates UTF8 encoding
raise ArgumentError, "contains NULL"
Expand Down

0 comments on commit 87c1fe9

Please sign in to comment.