aboutsummaryrefslogtreecommitdiffstats
path: root/include/bbcode.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-03-15 00:56:25 -0700
committerFriendika <info@friendika.com>2011-03-15 00:56:25 -0700
commit4cc20f1288a59d6ff48a62da62ec056ebd543e14 (patch)
treebbcbcc6666372b455af86b70bb39b0073d788aa0 /include/bbcode.php
parent67b0b4600b0889b71c15be6ce6aaf72d8cacafb0 (diff)
downloadvolse-hubzilla-4cc20f1288a59d6ff48a62da62ec056ebd543e14.tar.gz
volse-hubzilla-4cc20f1288a59d6ff48a62da62ec056ebd543e14.tar.bz2
volse-hubzilla-4cc20f1288a59d6ff48a62da62ec056ebd543e14.zip
fix youtube videos that use https:// urls
Diffstat (limited to 'include/bbcode.php')
-rw-r--r--include/bbcode.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/bbcode.php b/include/bbcode.php
index 978b4af69..4caf18766 100644
--- a/include/bbcode.php
+++ b/include/bbcode.php
@@ -90,7 +90,7 @@ function bbcode($Text) {
$Text = preg_replace("/\[img\=([0-9]*)x([0-9]*)\](.+?)\[\/img\]/", '<img src="$3" height="$2" width="$1">', $Text);
// Youtube extensions
- $Text = preg_replace("/\[youtube\]http:\/\/www.youtube.com\/watch\?v\=(.+?)\[\/youtube\]/",'[youtube]$1[/youtube]',$Text);
+ $Text = preg_replace("/\[youtube\]https?:\/\/www.youtube.com\/watch\?v\=(.+?)\[\/youtube\]/",'[youtube]$1[/youtube]',$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);
// oembed tag