Skip to content

Commit 3cc9b61

Browse files
author
gene
committed
fixed ruby version backwards compatibility
1 parent 368a360 commit 3cc9b61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/onelogin/ruby-saml/response.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -738,7 +738,7 @@ def validate_subject_confirmation
738738
next if (attrs.include? "InResponseTo" and attrs['InResponseTo'] != in_response_to) ||
739739
(attrs.include? "NotOnOrAfter" and (parse_time(confirmation_data_node, "NotOnOrAfter") + allowed_clock_drift) <= now) ||
740740
(attrs.include? "NotBefore" and parse_time(confirmation_data_node, "NotBefore") > (now + allowed_clock_drift)) ||
741-
(attrs.include? "Recipient" and !options[:skip_recipient_check] and attrs['Recipient'] != settings&.assertion_consumer_service_url)
741+
(attrs.include? "Recipient" and !options[:skip_recipient_check] and settings and attrs['Recipient'] != settings.assertion_consumer_service_url)
742742

743743
valid_subject_confirmation = true
744744
break

0 commit comments

Comments
 (0)