aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2024-03-20 21:08:23 +0000
committerMario <mario@mariovavti.com>2024-03-20 21:08:23 +0000
commit66f5b34c0742341717b22653f707fcee7d31b318 (patch)
treeea80f816dc5ce2160cc9cd89b458e7015d13d008
parentedf898d7b701d9664f463adb97db9ca0f6293e1a (diff)
downloadvolse-hubzilla-66f5b34c0742341717b22653f707fcee7d31b318.tar.gz
volse-hubzilla-66f5b34c0742341717b22653f707fcee7d31b318.tar.bz2
volse-hubzilla-66f5b34c0742341717b22653f707fcee7d31b318.zip
possible fix for issue #1843
-rw-r--r--include/bbcode.php8
1 files 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("<br style='clear:left'></span><br /><br />", "<br style='clear:left'></span><br />", $text);
+ // Avoid triple linefeeds through oembed
+ $text = str_replace("<br style='clear:left'></span><br /><br />", "<br style='clear:left'></span>", $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.