aboutsummaryrefslogtreecommitdiffstats
path: root/include/text.php
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-05-11 22:57:12 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-05-11 22:57:12 -0700
commitf2a0dac653f9f372129f373104cf5cf56c108b1f (patch)
treed2c2293ff21baf810348cf22420beffece4922ce /include/text.php
parentaeb69dcbbe38bc2058ebf43305e27d354fa21f9b (diff)
downloadvolse-hubzilla-f2a0dac653f9f372129f373104cf5cf56c108b1f.tar.gz
volse-hubzilla-f2a0dac653f9f372129f373104cf5cf56c108b1f.tar.bz2
volse-hubzilla-f2a0dac653f9f372129f373104cf5cf56c108b1f.zip
fix a couple of miscellaneous errors which showed up in the logs
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 deb5a4c90..6ed06e92a 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?