aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2022-01-09 18:25:17 +0000
committerMario <mario@mariovavti.com>2022-01-09 18:25:17 +0000
commitb5e4c08fc531cfe057f6ebaa0852b4e89336a181 (patch)
tree1a8c01943da46a5c15a689340877066cdfdef0aa /include
parentdb39cd8b7c6e715d348270afb0604ef19b2b4fac (diff)
downloadvolse-hubzilla-b5e4c08fc531cfe057f6ebaa0852b4e89336a181.tar.gz
volse-hubzilla-b5e4c08fc531cfe057f6ebaa0852b4e89336a181.tar.bz2
volse-hubzilla-b5e4c08fc531cfe057f6ebaa0852b4e89336a181.zip
fix get_tags() parsing toc bbcodes
Diffstat (limited to 'include')
-rw-r--r--include/text.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/text.php b/include/text.php
index 9c59a9908..666d90838 100644
--- a/include/text.php
+++ b/include/text.php
@@ -865,6 +865,7 @@ function get_tags($s) {
// ignore anything in a code or svg block
$s = preg_replace('/\[code(.*?)\](.*?)\[\/code\]/sm','',$s);
$s = preg_replace('/\[svg(.*?)\](.*?)\[\/svg\]/sm','',$s);
+ $s = preg_replace('/\[toc(.*?)\]/sm','',$s);
// ignore anything in [style= ]
$s = preg_replace('/\[style=(.*?)\]/sm','',$s);