aboutsummaryrefslogtreecommitdiffstats
path: root/include/text.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-11-02 21:07:17 -0700
committerFriendika <info@friendika.com>2011-11-02 21:07:17 -0700
commitbd48a016afeaa9aa6a67739fad9bda63814372f0 (patch)
tree6b44bc609a68d6e128d224b7b2ef44cc0e86b48d /include/text.php
parent3ca41fc3bd2c53c8523991ad4ffdace3b417235e (diff)
downloadvolse-hubzilla-bd48a016afeaa9aa6a67739fad9bda63814372f0.tar.gz
volse-hubzilla-bd48a016afeaa9aa6a67739fad9bda63814372f0.tar.bz2
volse-hubzilla-bd48a016afeaa9aa6a67739fad9bda63814372f0.zip
fix for multiple consecutive @ tags
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 4726872ec..59fc15007 100644
--- a/include/text.php
+++ b/include/text.php
@@ -465,7 +465,7 @@ function get_tags($s) {
// Match full names against @tags including the space between first and last
// We will look these up afterward to see if they are full names or not recognisable.
- if(preg_match_all('/(@[^ \x0D\x0A,:?]+ [^ \x0D\x0A,:?]+)([ \x0D\x0A,:?]|$)/',$s,$match)) {
+ if(preg_match_all('/(@[^ \x0D\x0A,:?]+ [^ \x0D\x0A@,:?]+)([ \x0D\x0A@,:?]|$)/',$s,$match)) {
foreach($match[1] as $mtch) {
if(strstr($mtch,"]")) {
// we might be inside a bbcode color tag - leave it alone