diff options
author | Jaime Perez Crespo <jaime.perez@uninett.no> | 2016-03-03 11:48:54 +0100 |
---|---|---|
committer | Jaime Perez Crespo <jaime.perez@uninett.no> | 2016-03-03 11:48:54 +0100 |
commit | d4de56da714ffc46cfee0b066c723c21be527c79 (patch) | |
tree | f79bb33b6e580868fb071da5915f7da0edcab9ec /lib/SimpleSAML/Metadata/MetaDataStorageSource.php | |
parent | 7ce18d59c208fb28baaef549280d09bf9b9dc903 (diff) | |
download | simplesamlphp-d4de56da714ffc46cfee0b066c723c21be527c79.zip simplesamlphp-d4de56da714ffc46cfee0b066c723c21be527c79.tar.gz simplesamlphp-d4de56da714ffc46cfee0b066c723c21be527c79.tar.bz2 |
Rename Utils\HTTP::getSelfHostWithoutPort() to Utils\HTTP::getSelfHostWithNonStandardPort(), change the logic, and reimplement Utils\HTTP::getSelfHost() to depend on use the former. Complete the tests to include the case of port 443 while using HTTPS.
Diffstat (limited to 'lib/SimpleSAML/Metadata/MetaDataStorageSource.php')
-rw-r--r-- | lib/SimpleSAML/Metadata/MetaDataStorageSource.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/SimpleSAML/Metadata/MetaDataStorageSource.php b/lib/SimpleSAML/Metadata/MetaDataStorageSource.php index d442bf7..9d677cd 100644 --- a/lib/SimpleSAML/Metadata/MetaDataStorageSource.php +++ b/lib/SimpleSAML/Metadata/MetaDataStorageSource.php @@ -198,7 +198,7 @@ abstract class SimpleSAML_Metadata_MetaDataStorageSource $metadataSet = $this->getMetadataSet($set); // check for hostname - $currenthost = \SimpleSAML\Utils\HTTP::getSelfHostWithoutPort(); // sp.example.org + $currenthost = \SimpleSAML\Utils\HTTP::getSelfHost(); // sp.example.org foreach ($metadataSet as $index => $entry) { if ($index === $entityId) { |