aboutsummaryrefslogtreecommitdiffstats
path: root/include/text.php
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-05-12 19:00:54 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-05-12 19:00:54 -0700
commit018e7022817fd73e904021ecf46f2c5839da9a62 (patch)
tree0bc817910756931bcaa0b773d30d31ee3c8fa6ed /include/text.php
parent5386686a1e0e60623d6421cbd85a93814c74fb58 (diff)
parent1e0e812440b8b87c39a88692e39eb0baca736b6e (diff)
downloadvolse-hubzilla-018e7022817fd73e904021ecf46f2c5839da9a62.tar.gz
volse-hubzilla-018e7022817fd73e904021ecf46f2c5839da9a62.tar.bz2
volse-hubzilla-018e7022817fd73e904021ecf46f2c5839da9a62.zip
Merge branch 'master' of https://github.com/redmatrix/redmatrix
Conflicts: mod/mitem.php view/nl/strings.php
Diffstat (limited to 'include/text.php')
-rw-r--r--include/text.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/text.php b/include/text.php
index c7b662879..3004d9f07 100644
--- a/include/text.php
+++ b/include/text.php
@@ -2244,7 +2244,7 @@ function handle_tag($a, &$body, &$access_tag, &$str_tags, $profile_uid, $tag, $d
// The '=' is needed to not replace color codes if the code is also used as a tag
// Much better would be to somehow completely avoiding things in e.g. [color]-tags.
// This would allow writing things like "my favourite tag=#foobar".
- $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;
}
//is the link already in str_tags?