summaryrefslogtreecommitdiffstats
path: root/lib/SimpleSAML
diff options
context:
space:
mode:
Diffstat (limited to 'lib/SimpleSAML')
-rw-r--r--lib/SimpleSAML/Utils/HTTP.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/SimpleSAML/Utils/HTTP.php b/lib/SimpleSAML/Utils/HTTP.php
index 00946fc..12809c7 100644
--- a/lib/SimpleSAML/Utils/HTTP.php
+++ b/lib/SimpleSAML/Utils/HTTP.php
@@ -323,7 +323,7 @@ class HTTP
$hostname = $matches[1];
// add self host to the white list
- $self_host = self::getSelfHost();
+ $self_host = self::getSelfHostWithNonStandardPort();
$trustedSites[] = $self_host;
// throw exception due to redirection to untrusted site
@@ -642,7 +642,7 @@ class HTTP
$baseurl = explode("/", self::getBaseURL());
$elements = array_slice($baseurl, 3 - count($baseurl), count($baseurl) - 4);
$path = implode("/", $elements);
- return self::getSelfHost()."/".$path;
+ return self::getSelfHostWithNonStandardPort()."/".$path;
}