From d191910baa8b29bf7b5b84fc0ce79d2fe9f4d16d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=85kre=20Solberg?= <andreas.solberg@uninett.no> Date: Thu, 30 Apr 2009 07:03:36 +0000 Subject: [PATCH] fixed wrong variable name for entityid git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1480 44740490-163a-0410-bde0-09ae8108e29a --- modules/saml2/lib/Auth/Source/SP.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/saml2/lib/Auth/Source/SP.php b/modules/saml2/lib/Auth/Source/SP.php index 6da47d57a..6dc6ce7fa 100644 --- a/modules/saml2/lib/Auth/Source/SP.php +++ b/modules/saml2/lib/Auth/Source/SP.php @@ -76,8 +76,7 @@ class sspmod_saml2_Auth_Source_SP extends SimpleSAML_Auth_Source { if (array_key_exists('entityId', $config)) { $this->entityId = $config['entityId']; } else { - $this->entityId = SimpleSAML_Module::getModuleURL('saml2/sp/metadata.php?source=' . - urlencode($this->authId)); + $this->entityId = SimpleSAML_Module::getModuleURL('saml2/sp/metadata.php?source=' . urlencode($this->authId)); } if (array_key_exists('idp', $config)) { @@ -135,7 +134,7 @@ class sspmod_saml2_Auth_Source_SP extends SimpleSAML_Auth_Source { public function getNameIDFormat() { $metadata = SimpleSAML_Metadata_MetaDataStorageHandler::getMetadataHandler(); - $spmeta = $metadata->getMetadata($this->entityID, 'saml20-sp-hosted'); + $spmeta = $metadata->getMetadata($this->getEntityId(), 'saml20-sp-hosted'); if (array_key_exists('NameIDFormat', $spmeta)) { return $spmeta['NameIDFormat']; -- GitLab