Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Make authorize.net config page secure.

  • Loading branch information...
commit f1e4622ccb01ca95cbeb6f97e0e23d85c7fd9fde 1 parent 4241549
ethem authored
Showing with 10 additions and 1 deletion.
  1. +10 −1 enrol/authorize/enrol.php
11 enrol/authorize/enrol.php
View
@@ -397,7 +397,16 @@ function config_form($frm)
}
if (empty($CFG->loginhttps) and substr($CFG->wwwroot, 0, 5) !== 'https') {
- notify('loginhttps must be ON');
+ $a = new stdClass;
+ $a->url = "$CFG->wwwroot/$CFG->admin/settings.php?section=httpsecurity";
+ notice(get_string('adminconfighttps', 'enrol_authorize', $a));
+ }
+ elseif (empty($_SERVER['HTTPS']) || $_SERVER['HTTPS'] == 'off') {
+ $wwwsroot = qualified_me();
+ $wwwsroot = str_replace('http:', 'https:', $wwwsroot);
+ $a = new stdClass;
+ $a->url = $wwwsroot;
+ notice(get_string('adminconfighttpsgo', 'enrol_authorize', $a));
}
if (!empty($frm->an_review)) {
Please sign in to comment.
Something went wrong with that request. Please try again.