Exclude trailing punctuations from URL

This commit is contained in:
Max Kostikov
2019-07-16 18:11:47 +02:00
committed by Mario
parent b2d1fadf66
commit 821af482f0
4 changed files with 6 additions and 6 deletions

View File

@@ -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);