aboutsummaryrefslogtreecommitdiffstats
path: root/include/bbcode.php
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2019-07-16 18:11:47 +0200
committerMario <mario@mariovavti.com>2019-07-16 18:11:47 +0200
commit821af482f070bfc671d2f5b6480a370dc86f212e (patch)
treef5016ee72c8a21e773346aafb6ffce9d1da8cffd /include/bbcode.php
parentb2d1fadf66fd5fc0d4f5774e8549fd81fbcf5241 (diff)
downloadvolse-hubzilla-821af482f070bfc671d2f5b6480a370dc86f212e.tar.gz
volse-hubzilla-821af482f070bfc671d2f5b6480a370dc86f212e.tar.bz2
volse-hubzilla-821af482f070bfc671d2f5b6480a370dc86f212e.zip
Exclude trailing punctuations from URL
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 485a1f5b2..df91356de 100644
--- a/include/bbcode.php
+++ b/include/bbcode.php
@@ -70,7 +70,7 @@ function bb_tag_preg_replace($pattern, $replace, $name, $s) {
function tryoembed($match) {
- $url = ((count($match) == 2) ? $match[1] : $match[2]);
+ $url = ((count($match) == 3) ? $match[1] : $match[2]);
$o = oembed_fetch_url($url);