diff --git a/modules/core/lib/Auth/Process/Cardinality.php b/modules/core/lib/Auth/Process/Cardinality.php index 74d330f00c7f1f7526eb2ad45ffa61df1171e223..88b44f336be99fb4f4ec7ff5a987ea652c1f7f49 100644 --- a/modules/core/lib/Auth/Process/Cardinality.php +++ b/modules/core/lib/Auth/Process/Cardinality.php @@ -97,7 +97,7 @@ class sspmod_core_Auth_Process_Cardinality extends SimpleSAML_Auth_ProcessingFil if (array_key_exists('Source', $request) && array_key_exists('entityid', $request['Source'])) { $entityid = $request['Source']['entityid']; } - if (in_array($entityid, $this->ignoreEntities)) { + if (in_array($entityid, $this->ignoreEntities, true)) { SimpleSAML\Logger::debug('Cardinality: Ignoring assertions from '.$entityid); return; } diff --git a/modules/core/lib/Auth/Process/CardinalitySingle.php b/modules/core/lib/Auth/Process/CardinalitySingle.php index 459d57d8ba162893bcd20fa4f5e1585d43ac5731..a8dbb3c56042dec1d9bf9f7d2503bc91d396237e 100644 --- a/modules/core/lib/Auth/Process/CardinalitySingle.php +++ b/modules/core/lib/Auth/Process/CardinalitySingle.php @@ -70,7 +70,7 @@ class sspmod_core_Auth_Process_CardinalitySingle extends SimpleSAML_Auth_Process if (array_key_exists('Source', $request) && array_key_exists('entityid', $request['Source']) && - in_array($request['Source']['entityid'], $this->ignoreEntities) + in_array($request['Source']['entityid'], $this->ignoreEntities, true) ) { SimpleSAML\Logger::debug('CardinalitySingle: Ignoring assertions from '.$request['Source']['entityid']); return; diff --git a/modules/metarefresh/lib/MetaLoader.php b/modules/metarefresh/lib/MetaLoader.php index 5554c017f40a4f30fdef5919cb99c889f2b1a053..0635cdd61bbb4ec8e584e158d5ffe93a36fd9f48 100644 --- a/modules/metarefresh/lib/MetaLoader.php +++ b/modules/metarefresh/lib/MetaLoader.php @@ -166,19 +166,19 @@ class sspmod_metarefresh_MetaLoader $template = $source['template']; } - if (in_array('shib13-sp-remote', $this->types)) { + if (in_array('shib13-sp-remote', $this->types, true)) { $this->addMetadata($source['src'], $entity->getMetadata1xSP(), 'shib13-sp-remote', $template); } - if (in_array('shib13-idp-remote', $this->types)) { + if (in_array('shib13-idp-remote', $this->types, true)) { $this->addMetadata($source['src'], $entity->getMetadata1xIdP(), 'shib13-idp-remote', $template); } - if (in_array('saml20-sp-remote', $this->types)) { + if (in_array('saml20-sp-remote', $this->types, true)) { $this->addMetadata($source['src'], $entity->getMetadata20SP(), 'saml20-sp-remote', $template); } - if (in_array('saml20-idp-remote', $this->types)) { + if (in_array('saml20-idp-remote', $this->types, true)) { $this->addMetadata($source['src'], $entity->getMetadata20IdP(), 'saml20-idp-remote', $template); } - if (in_array('attributeauthority-remote', $this->types)) { + if (in_array('attributeauthority-remote', $this->types, true)) { $attributeAuthorities = $entity->getAttributeAuthorities(); if (!empty($attributeAuthorities)) { $this->addMetadata($source['src'], $attributeAuthorities[0], 'attributeauthority-remote', $template);