Skip to content

Commit

Permalink
MDL-9836
Browse files Browse the repository at this point in the history
Authorize.net / SSL Config Bug prevents display of options from enrol/authorize/enrol.php
  • Loading branch information
ethem committed Jun 15, 2007
1 parent 57fead9 commit 8c239c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions enrol/authorize/enrol.php
Expand Up @@ -74,7 +74,7 @@ function print_entry($course) {
return;
}

if (empty($_SERVER['HTTPS']) || $_SERVER['HTTPS'] == 'off') {
if (isset($_SERVER['SERVER_PORT']) && $_SERVER['SERVER_PORT'] != 443) { // MDL-9836
if (empty($CFG->loginhttps)) {
error(get_string('httpsrequired', 'enrol_authorize'));
} else {
Expand Down Expand Up @@ -425,7 +425,7 @@ function config_form($frm)
$a->url = "$CFG->wwwroot/$CFG->admin/config.php#configsectionsecurity";
notice(get_string('adminconfighttps', 'enrol_authorize', $a));
}
elseif (empty($_SERVER['HTTPS']) || $_SERVER['HTTPS'] == 'off') {
elseif (isset($_SERVER['SERVER_PORT']) && $_SERVER['SERVER_PORT'] != 443) { // MDL-9836
$wwwsroot = qualified_me();
$wwwsroot = str_replace('http:', 'https:', $wwwsroot);
$a = new stdClass;
Expand Down

0 comments on commit 8c239c8

Please sign in to comment.