-
This commit is contained in:
Executable
+1054
File diff suppressed because it is too large
Load Diff
Binary file not shown.
+1
-1
@@ -509,7 +509,7 @@ function media_youtube_id_from_url(string $url): string {
|
||||
$id = '';
|
||||
if (media_host_matches($host, 'youtu.be') && isset($segments[0])) $id = $segments[0];
|
||||
if ($id === '' && isset($query['v'])) $id = media_scalar_string($query['v']);
|
||||
if ($id === '' && preg_match('#/(?:embed|shorts|live|v)/([^/?#]+)#', $path, $m)) $id = $m[1];
|
||||
if ($id === '' && preg_match('~/(?:embed|shorts|live|v)/([^/?#]+)~', $path, $m)) $id = $m[1];
|
||||
return media_clean_token($id);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user