Skip to content

Commit

Permalink
Merge branch 'MDL-74042-master' of https://github.com/jleyva/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
stronk7 committed Mar 4, 2022
2 parents 1aa65fb + c112780 commit c111717
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions media/player/vimeo/wsplayer.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
$video = required_param('video', PARAM_ALPHANUM); // Video ids are numeric, but it's more solid to expect things like 00001.
$width = optional_param('width', 0, PARAM_INT);
$height = optional_param('height', 0, PARAM_INT);
$h = optional_param('h', '', PARAM_ALPHANUM); // Security hash for restricted videos.

// Authenticate the user.
$webservicelib = new webservice();
Expand All @@ -52,6 +53,10 @@
$display = "width=\"$width\" height=\"$height\"";
}

if (!empty($h)) {
$video .= '?h=' . $h;
}

$output = <<<OET
<html>
<head>
Expand Down

0 comments on commit c111717

Please sign in to comment.