summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrank2017-08-09 19:01:37 (GMT)
committerFrank2017-08-09 19:01:37 (GMT)
commit5cccfa373b65bb0ac1912a935322352629eddaa0 (patch)
tree0a7d97b1c4e49e88c61eabd0caf4d584117f77d1
parente3e19d445397e47506ffa0ae578afc5c47fd15df (diff)
YouTube tag to load the https player along with using YouTube's new embed standard
-rw-r--r--bbcode-filter.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/bbcode-filter.inc b/bbcode-filter.inc
index 8e83091..5c5fe46 100644
--- a/bbcode-filter.inc
+++ b/bbcode-filter.inc
@@ -231,7 +231,7 @@ function _bbcode_filter_process(&$body, $settings) {
// Links to popular sites
'#\[google(?::\w+)?\]([\w\s-]+?)\[/google(?::\w+)?\]#si' => '<a href="http://www.google.com/search?q=\\1">\\1</a>',
'#\[wikipedia(?::\w+)?\]([\w\s-]+?)\[/wikipedia(?::\w+)?\]#si' => '<a href="http://www.wikipedia.org/wiki/\\1">\\1</a>',
- '#\[youtube\]([0-9a-zA-Z_\-]+)\[/youtube\]#si' => '<object width="425" height="366"><param name="movie" value="http://www.youtube.com/v/\\1"></param><embed src="http://www.youtube.com/v/\\1" type="application/x-shockwave-flash" width="425" height="366"></embed></object>',
+ '#\[youtube\]([0-9a-zA-Z_\-]+)\[/youtube\]#si' => '<iframe width="425" height="366" src="//www.youtube.com/embed/\\1" frameborder="0" allowfullscreen></iframe>',
// Table tags
'#\[table\](.+?)\[/table\]#si' => '<table class="bb-table">\\1</table>',
'#\[(row|r|tr)\](.+?)\[/(row|r|tr)\]#si' => '<tr>\\2</tr>',