Commit 259af760 authored by Anybody's avatar Anybody Committed by robin.ingelbrecht

Issue #2947849 by Anybody: Support local / relative URLS

parent d0f5ca17
......@@ -188,7 +188,7 @@ class Html5 extends ProviderPluginBase {
* {@inheritdoc}
*/
public static function getIdFromInput($input) {
$pattern = "/\b(http|https):\/\/.*(mp4|ogg|webm)\b/";
$pattern = "/(?:(\/)|(?:(?|http|https|ftp)(?|\/\/))).*(mp4|ogg|webm)/";
$matches = array();
preg_match($pattern, $input, $matches);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment