mirror of
https://github.com/moparisthebest/moparscape.org-smf
synced 2024-12-22 07:08:48 -05:00
Enable HTTPS for embedded videos as described by YouTube's API blog
http://apiblog.youtube.com/2011/02/https-support-for-youtube-embeds.html
This commit is contained in:
parent
7d223f6ba7
commit
a7475812cc
@ -1712,7 +1712,7 @@ function parse_bbc($message, $smileys = true, $cache_id = '', $parse_tags = arra
|
||||
array(
|
||||
'tag' => 'youtube',
|
||||
'type' => 'unparsed_content',
|
||||
'content' => '<iframe style="border:0;" width="642" height="392" src="http://www.youtube.com/embed/$1" allowfullscreen></iframe>',
|
||||
'content' => '<iframe style="border:0;" width="642" height="392" src="https://www.youtube.com/embed/$1" allowfullscreen></iframe>',
|
||||
'validate' => create_function('&$tag, &$data, $disabled', '
|
||||
if (isset($disabled[\'url\']))
|
||||
$tag[\'content\'] = \'http://www.youtube.com/watch?v=$1\';
|
||||
@ -4555,4 +4555,4 @@ function remove_integration_function($hook, $function)
|
||||
$modSettings[$hook] = implode(',', $functions);
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user