aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorFabio Comuni <fabrix.xm@gmail.com>2011-10-24 17:28:48 +0200
committerFabio Comuni <fabrix.xm@gmail.com>2011-10-24 17:28:48 +0200
commit40ea48bdabb5b7b8c87cd3c37e12c0c24eb91014 (patch)
tree307ddd2810b3e4ee64f5d2b15ff8caa7babcb909 /include
parent75d4f332335e66375815b339526252e8ab34be32 (diff)
downloadvolse-hubzilla-40ea48bdabb5b7b8c87cd3c37e12c0c24eb91014.tar.gz
volse-hubzilla-40ea48bdabb5b7b8c87cd3c37e12c0c24eb91014.tar.bz2
volse-hubzilla-40ea48bdabb5b7b8c87cd3c37e12c0c24eb91014.zip
fix vimeo oembed bbcode regexp
Diffstat (limited to 'include')
-rw-r--r--include/bbcode.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/bbcode.php b/include/bbcode.php
index 7045f196f..a8c66d30f 100644
--- a/include/bbcode.php
+++ b/include/bbcode.php
@@ -172,8 +172,8 @@ function bbcode($Text,$preserve_nl = false) {
$Text = preg_replace("/\[youtube\]([A-Za-z0-9\-_=]+)(.*?)\[\/youtube\]/ism", '<iframe width="425" height="350" src="http://www.youtube.com/embed/$1" frameborder="0" ></iframe>', $Text);
//}
- $Text = preg_replace_callback("/\[vimeo\]https?:\/\/player.vimeo.com\/video\/([0-9]+)(.*?)\[\/vimeo\]/ism",'tryoembed',$Text);
- $Text = preg_replace_callback("/\[vimeo\]https?:\/\/vimeo.com\/([0-9]+)(.*?)\[\/vimeo\]/ism",'tryoembed',$Text);
+ $Text = preg_replace_callback("/\[vimeo\](https?:\/\/player.vimeo.com\/video\/[0-9]+).*?\[\/vimeo\]/ism",'tryoembed',$Text);
+ $Text = preg_replace_callback("/\[vimeo\](https?:\/\/vimeo.com\/[0-9]+).*?\[\/vimeo\]/ism",'tryoembed',$Text);
$Text = preg_replace("/\[vimeo\]https?:\/\/player.vimeo.com\/video\/([0-9]+)(.*?)\[\/vimeo\]/ism",'[vimeo]$1[/vimeo]',$Text);
$Text = preg_replace("/\[vimeo\]https?:\/\/vimeo.com\/([0-9]+)(.*?)\[\/vimeo\]/ism",'[vimeo]$1[/vimeo]',$Text);