Skip to content

Commit 7a956e3

Browse files
committed
Check whether certificate file exists
1 parent b4f1c59 commit 7a956e3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

default-wp-saml-auth.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
namespace BEAPI\Plugin_Defaults\Wp_Saml_Auth;
3131

3232
// Constants to be defined as env vars
33-
if ( ! defined( 'SAML_IDP_ENTITY_ID' ) || ! defined( 'SAML_IDP_URL' ) || ! defined( 'SAML_LOGOUT_URL' ) || ! defined( 'SAML_CERT_PATH' ) ) {
33+
if ( ! defined( 'SAML_IDP_ENTITY_ID' ) || ! defined( 'SAML_IDP_URL' ) || ! defined( 'SAML_LOGOUT_URL' ) || ! defined( 'SAML_CERT_PATH' ) || ! file_exists( SAML_CERT_PATH ) ) {
3434
return;
3535
}
3636

0 commit comments

Comments
 (0)