diff options
author | Friendika <info@friendika.com> | 2011-08-26 01:32:22 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-08-26 01:32:22 -0700 |
commit | 1861dc1fae549a0ee2b6287d4f7dc7f8797f5070 (patch) | |
tree | 3767bfd2137441070763e2af28fae3ca8e97196d /include/bbcode.php | |
parent | a4739aef915c0083bc2020c66fe5361018259e00 (diff) | |
download | volse-hubzilla-1861dc1fae549a0ee2b6287d4f7dc7f8797f5070.tar.gz volse-hubzilla-1861dc1fae549a0ee2b6287d4f7dc7f8797f5070.tar.bz2 volse-hubzilla-1861dc1fae549a0ee2b6287d4f7dc7f8797f5070.zip |
don't allow fullscreen for youtube iframe - this makes it hard to visit the network page when they throw an error
Diffstat (limited to 'include/bbcode.php')
-rw-r--r-- | include/bbcode.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/bbcode.php b/include/bbcode.php index c05c36938..a3f2971e5 100644 --- a/include/bbcode.php +++ b/include/bbcode.php @@ -134,7 +134,7 @@ function bbcode($Text,$preserve_nl = false) { // Youtube extensions $Text = preg_replace("/\[youtube\]https?:\/\/www.youtube.com\/watch\?v\=(.*?)\[\/youtube\]/",'[youtube]$1[/youtube]',$Text); $Text = preg_replace("/\[youtube\]https?:\/\/youtu.be\/(.*?)\[\/youtube\]/",'[youtube]$1[/youtube]',$Text); - $Text = preg_replace("/\[youtube\](.*?)\[\/youtube\]/", '<iframe width="425" height="349" src="http://www.youtube.com/embed/$1" frameborder="0" allowfullscreen></iframe>', $Text); + $Text = preg_replace("/\[youtube\](.*?)\[\/youtube\]/", '<iframe width="425" height="349" src="http://www.youtube.com/embed/$1" frameborder="0" ></iframe>', $Text); } // $Text = preg_replace("/\[youtube\](.*?)\[\/youtube\]/", '<object width="425" height="350" type="application/x-shockwave-flash" data="http://www.youtube.com/v/$1" ><param name="movie" value="http://www.youtube.com/v/$1"></param><!--[if IE]><embed src="http://www.youtube.com/v/$1" type="application/x-shockwave-flash" width="425" height="350" /><![endif]--></object>', $Text); |