Browse Source

Fixes #5048 - SSL verification for SAML throws an error

Tobias Schäfer 1 year ago
parent
commit
2db79749ea
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/models/setting/validation/saml/tls.rb

+ 1 - 1
app/models/setting/validation/saml/tls.rb

@@ -28,7 +28,7 @@ class Setting::Validation::Saml::TLS < Setting::Validation
       }
     )
 
-    return nil if resp.error.empty? || !resp.error.starts_with?('#<OpenSSL::SSL::SSLError')
+    return nil if resp.error.nil? || !resp.error.starts_with?('#<OpenSSL::SSL::SSLError')
 
     __('The verification of the TLS connection failed. Please check the IDP certificate.')
   end