diff --git a/lib/SimpleSAML/Utils/HTTP.php b/lib/SimpleSAML/Utils/HTTP.php index 8b0caf3077724ea5e33024a8cac71bbcf7316be9..fd6437eb5bb4c817b90206671a3b2064c5236e4d 100644 --- a/lib/SimpleSAML/Utils/HTTP.php +++ b/lib/SimpleSAML/Utils/HTTP.php @@ -313,15 +313,11 @@ class HTTP // get the white list of domains if ($trustedSites === null) { - $trustedSites = \SimpleSAML_Configuration::getInstance()->getArray('trusted.url.domains', null); - // TODO: remove this before 2.0 - if ($trustedSites === null) { - $trustedSites = \SimpleSAML_Configuration::getInstance()->getArray('redirect.trustedsites', null); - } + $trustedSites = \SimpleSAML_Configuration::getInstance()->getValue('trusted.url.domains', array()); } // validates the URL's host is among those allowed - if ($trustedSites !== null) { + if (is_array($trustedSites)) { assert(is_array($trustedSites)); preg_match('@^https?://([^/]+)@i', $url, $matches); $hostname = $matches[1];