Permalink
Browse files

Merge branch 'MDL-60634-master' of git://github.com/jleyva/moodle

  • Loading branch information...
dmonllao committed Nov 2, 2017
2 parents f816ea9 + 098b16f commit 59aff5f949520368dc241ac9bb4eac3d6d10c47a
Showing with 2 additions and 1 deletion.
  1. +2 −1 admin/tool/mobile/classes/api.php
@@ -386,7 +386,8 @@ public static function get_potential_config_issues() {
// Return certificate information and verify the certificate.
$curl->setopt(array('CURLOPT_CERTINFO' => 1, 'CURLOPT_SSL_VERIFYPEER' => true));
$httpswwwroot = str_replace('http:', 'https:', $CFG->wwwroot); // Force https url.
$curl->head($httpswwwroot . "/login/index.php");
// Check https using a page not redirecting or returning exceptions.
$curl->head($httpswwwroot . "/$CFG->admin/tool/mobile/mobile.webmanifest.php");
$info = $curl->get_info();
// First of all, check the server certificate (if any).

0 comments on commit 59aff5f

Please sign in to comment.