Skip to content

Commit

Permalink
Merge branch 'MDL-80784-main' of https://github.com/noeldemartin/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
junpataleta authored and andrewnicols committed Feb 8, 2024
2 parents 6eaeeda + a916c21 commit 53e5c0d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/behat/classes/behat_config_util.php
Expand Up @@ -762,7 +762,8 @@ protected function get_mobile_version_tags($verbose = true) : string {

// Get app version from env.json inside wwwroot.
$jsonurl = $CFG->behat_ionic_wwwroot . '/assets/env.json';
$json = @file_get_contents($jsonurl);
$streamcontext = stream_context_create(['ssl' => ['verify_peer' => false, 'verify_peer_name' => false]]);
$json = @file_get_contents($jsonurl, false, $streamcontext);

if (!$json) {
throw new coding_exception('Unable to load app version from ' . $jsonurl);
Expand Down

0 comments on commit 53e5c0d

Please sign in to comment.