aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2023-07-04 08:05:00 +0000
committerMario <mario@mariovavti.com>2023-07-04 08:05:00 +0000
commit6753d260e47bddbc61bbfe1fe6d9de384afc2da6 (patch)
tree247ae22d49644f4ba10192368dbd85ecb06cda92
parenta3092204a1583b58cd9680f2902a6982bd8dd807 (diff)
downloadvolse-hubzilla-6753d260e47bddbc61bbfe1fe6d9de384afc2da6.tar.gz
volse-hubzilla-6753d260e47bddbc61bbfe1fe6d9de384afc2da6.tar.bz2
volse-hubzilla-6753d260e47bddbc61bbfe1fe6d9de384afc2da6.zip
do not linkify in nobb and noparse tags - issue #1776
-rw-r--r--include/text.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/text.php b/include/text.php
index c038d3d3d..6ab8fc1ce 100644
--- a/include/text.php
+++ b/include/text.php
@@ -887,6 +887,8 @@ function get_tags($s) {
// ignore anything in a code or svg block
$s = preg_replace('/\[code(.*?)\](.*?)\[\/code\]/sm','',$s);
+ $s = preg_replace('/\[nobb\](.*?)\[\/nobb\]/sm','',$s);
+ $s = preg_replace('/\[noparse\](.*?)\[\/noparse\]/sm','',$s);
$s = preg_replace('/\[svg(.*?)\](.*?)\[\/svg\]/sm','',$s);
$s = preg_replace('/\[toc(.*?)\]/sm','',$s);