From c450a7a75712bec223d927fb2eb797df193432a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakobus=20Sch=C3=BCrz=20=28admin=29?= Date: Mon, 18 Oct 2021 08:39:01 +0200 Subject: [PATCH 1/2] open link from picture in new tab --- src/Content/Text/BBCode.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Content/Text/BBCode.php b/src/Content/Text/BBCode.php index d0c19c616f..433be30aee 100644 --- a/src/Content/Text/BBCode.php +++ b/src/Content/Text/BBCode.php @@ -687,7 +687,7 @@ class BBCode } elseif (!empty($data['preview'])) { $return .= sprintf('
', $data['url'], self::proxyUrl($data['preview'], $simplehtml, $uriid), $data['title']); } - $return .= sprintf('

%s

', $data['url'], $data['title']); + $return .= sprintf('

%s

', $data['url'], $data['title']); } } From 4aaa5a6a46b703f3f6bca72ac4d15a2ee9f44d1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakobus=20Sch=C3=BCrz=20=28admin=29?= Date: Mon, 18 Oct 2021 08:41:45 +0200 Subject: [PATCH 2/2] open provider-url in new tab --- src/Content/Text/BBCode.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Content/Text/BBCode.php b/src/Content/Text/BBCode.php index 433be30aee..4dfdea0620 100644 --- a/src/Content/Text/BBCode.php +++ b/src/Content/Text/BBCode.php @@ -698,9 +698,9 @@ class BBCode if (!empty($data['provider_url']) && !empty($data['provider_name'])) { if (!empty($data['author_name'])) { - $return .= sprintf('%s (%s)', $data['provider_url'], $data['author_name'], $data['provider_name']); + $return .= sprintf('%s (%s)', $data['provider_url'], $data['author_name'], $data['provider_name']); } else { - $return .= sprintf('%s', $data['provider_url'], $data['provider_name']); + $return .= sprintf('%s', $data['provider_url'], $data['provider_name']); } }