mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 04:22:07 +02:00
MDL-59255 core: Make core_media_manager support RTMP.
This commit is contained in:
parent
646e8bf668
commit
b03ffb099e
@ -399,6 +399,7 @@ final class core_media_manager {
|
||||
* @return array Array of 1 or more moodle_url objects
|
||||
*/
|
||||
public function split_alternatives($combinedurl, &$width, &$height) {
|
||||
global $CFG;
|
||||
$urls = explode('#', $combinedurl);
|
||||
$width = 0;
|
||||
$height = 0;
|
||||
@ -426,8 +427,9 @@ final class core_media_manager {
|
||||
}
|
||||
|
||||
// Clean up url.
|
||||
$url = clean_param($url, PARAM_URL);
|
||||
if (empty($url)) {
|
||||
$url = fix_utf8($url);
|
||||
include_once($CFG->dirroot . '/lib/validateurlsyntax.php');
|
||||
if (!validateUrlSyntax($url, 's?H?S?F?R?E?u-P-a?I?p?f?q?r?')) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user