aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-02-25 15:43:01 +0000
committerMario <mario@mariovavti.com>2021-02-25 15:43:01 +0000
commit8295ccdda75e2eefba0d377aaab7301f1c0760a2 (patch)
treed110b9ed0495653a613c4792c3dd176038c068b5
parent373612a0465c924f5365d0e8d3a505da04b7a99f (diff)
downloadvolse-hubzilla-8295ccdda75e2eefba0d377aaab7301f1c0760a2.tar.gz
volse-hubzilla-8295ccdda75e2eefba0d377aaab7301f1c0760a2.tar.bz2
volse-hubzilla-8295ccdda75e2eefba0d377aaab7301f1c0760a2.zip
a possible fix for #1518
-rw-r--r--include/text.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/text.php b/include/text.php
index b7cc0ba20..ca3453b64 100644
--- a/include/text.php
+++ b/include/text.php
@@ -2837,7 +2837,7 @@ function handle_tag(&$body, &$str_tags, $profile_uid, $tag, $in_network = true)
// replace tag by the link. Make sure to not replace something in the middle of a word
- $body = preg_replace('/(?<![a-zA-Z0-9=])'.preg_quote($tag,'/').'/', $newtag, $body);
+ $body = preg_replace('/(?<![a-zA-Z0-9=\/])'.preg_quote($tag,'/').'/', $newtag, $body);
$replaced = true;
}