mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 04:22:07 +02:00
Merge branch 'MDL-60634-master' of git://github.com/jleyva/moodle
This commit is contained in:
commit
59aff5f949
@ -386,7 +386,8 @@ class api {
|
||||
// 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).
|
||||
|
Loading…
x
Reference in New Issue
Block a user