Skip to content

Commit

Permalink
MDL-40179 auth_cas: change is_proxybypass parameter to use server url
Browse files Browse the repository at this point in the history
  • Loading branch information
lameze committed Aug 19, 2015
1 parent dda862a commit e450eb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion auth/cas/auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ function connectCAS() {
}

// 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);
Expand Down

0 comments on commit e450eb3

Please sign in to comment.