From 66f5b34c0742341717b22653f707fcee7d31b318 Mon Sep 17 00:00:00 2001 From: Mario Date: Wed, 20 Mar 2024 21:08:23 +0000 Subject: possible fix for issue #1843 --- include/bbcode.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/include/bbcode.php b/include/bbcode.php index 86944ba60..360ebadc8 100644 --- a/include/bbcode.php +++ b/include/bbcode.php @@ -1729,10 +1729,12 @@ function bbcode($text, $options = []) { } // oembed tag - $text = oembed_bbcode2html($text); + if (strpos($text,'[/embed]') !== false) { + $text = oembed_bbcode2html($text); - // Avoid triple linefeeds through oembed - $text = str_replace("


", "

", $text); + // Avoid triple linefeeds through oembed + $text = str_replace("


", "
", $text); + } // If we found an event earlier, strip out all the event code and replace with a reformatted version. // Replace the event-start section with the entire formatted event. The other bbcode is stripped. -- cgit v1.2.3