Permalink
Browse files

MDL-9836

Authorize.net / SSL Config Bug prevents display of options from enrol/authorize/enrol.php
  • Loading branch information...
1 parent 16f89f2 commit aa7b876f03c5db7e2ab4569a2ad714b6c9516727 ethem committed Jun 15, 2007
Showing with 2 additions and 2 deletions.
  1. +2 −2 enrol/authorize/enrol.php
@@ -47,7 +47,7 @@ function print_entry($course) {
httpsrequired();
- 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 {
@@ -405,7 +405,7 @@ function config_form($frm)
$a->url = "$CFG->wwwroot/$CFG->admin/settings.php?section=httpsecurity";
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;

0 comments on commit aa7b876

Please sign in to comment.