From 9130e9498000cbb5ddd212d97b0577be59542a0c Mon Sep 17 00:00:00 2001 From: Simey Lameze Date: Tue, 18 Aug 2015 12:04:50 +0800 Subject: [PATCH] MDL-40179 auth_cas: change is_proxybypass parameter to use server url --- auth/cas/auth.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auth/cas/auth.php b/auth/cas/auth.php index eaf3f6c9ffa..22733b2a821 100644 --- a/auth/cas/auth.php +++ b/auth/cas/auth.php @@ -187,7 +187,7 @@ class auth_plugin_cas extends auth_plugin_ldap { } // If Moodle is configured to use a proxy, phpCAS needs some curl options set. - if (!empty($CFG->proxyhost) && !is_proxybypass($this->config->hostname)) { + if (!empty($CFG->proxyhost) && !is_proxybypass(phpCAS::getServerLoginURL())) { phpCAS::setExtraCurlOption(CURLOPT_PROXY, $CFG->proxyhost); if (!empty($CFG->proxyport)) { phpCAS::setExtraCurlOption(CURLOPT_PROXYPORT, $CFG->proxyport);