Commit 8ba0d182 authored by rupertj's avatar rupertj Committed by robin.ingelbrecht

Issue #2915496 by rupertj: File extension match should not be case sensitive

parent 259af760
......@@ -188,7 +188,7 @@ class Html5 extends ProviderPluginBase {
* {@inheritdoc}
*/
public static function getIdFromInput($input) {
$pattern = "/(?:(\/)|(?:(?|http|https|ftp)(?|\/\/))).*(mp4|ogg|webm)/";
$pattern = "/(?:(\/)|(?:(?|http|https|ftp)(?|\/\/))).*(mp4|ogg|webm)/i";
$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