aboutsummaryrefslogtreecommitdiffstats
path: root/include/bbcode.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2024-05-08 14:34:44 +0000
committerMario <mario@mariovavti.com>2024-05-08 14:34:44 +0000
commit76ce4705e23f286cf6b568191840404e5cb94e9f (patch)
treea8cab0b3d0247c2bca962f3f40b4089ead6e8fc8 /include/bbcode.php
parent7a5bb99d87f85a4ea93c270beaa27ecee0c0b853 (diff)
downloadvolse-hubzilla-76ce4705e23f286cf6b568191840404e5cb94e9f.tar.gz
volse-hubzilla-76ce4705e23f286cf6b568191840404e5cb94e9f.tar.bz2
volse-hubzilla-76ce4705e23f286cf6b568191840404e5cb94e9f.zip
more fixes for issue #1843
Diffstat (limited to 'include/bbcode.php')
-rw-r--r--include/bbcode.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/include/bbcode.php b/include/bbcode.php
index 5b97c1d9b..15a75ce3f 100644
--- a/include/bbcode.php
+++ b/include/bbcode.php
@@ -1745,10 +1745,8 @@ function bbcode($text, $options = []) {
// oembed tag
if (strpos($text,'[/embed]') !== false) {
+ $text = str_replace(["[/embed]\r", "[/embed]\n"], '[/embed]', $text);
$text = oembed_bbcode2html($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.