diff options
author | Tobias Diekershoff <tobias.diekershoff@gmx.net> | 2011-01-24 07:33:56 +0100 |
---|---|---|
committer | Tobias Diekershoff <tobias.diekershoff@gmx.net> | 2011-01-24 07:33:56 +0100 |
commit | 4198efe03570606b35f3aba6cdf7f80de20384f4 (patch) | |
tree | 5a59cf3b29a70f22728e25d7c46ab8648bcda407 /boot.php | |
parent | 2319bc43bf3f837c22daa5067dcf538e8b5a792d (diff) | |
parent | 205a2b8930c9d519c06f106d5d37702f8f69d013 (diff) | |
download | volse-hubzilla-4198efe03570606b35f3aba6cdf7f80de20384f4.tar.gz volse-hubzilla-4198efe03570606b35f3aba6cdf7f80de20384f4.tar.bz2 volse-hubzilla-4198efe03570606b35f3aba6cdf7f80de20384f4.zip |
Merge branch 'master' of git://github.com/friendika/friendika
Diffstat (limited to 'boot.php')
-rw-r--r-- | boot.php | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -1687,6 +1687,11 @@ function activity_match($haystack,$needle) { if(! function_exists('get_tags')) { function get_tags($s) { $ret = array(); + + // ignore anything in a code block + + $s = preg_replace('/\[code\](.*?)\[\/code\]/sm','',$s); + if(preg_match_all('/([@#][^ \x0D\x0A,:?]*)([ \x0D\x0A,:?]|$)/',$s,$match)) { foreach($match[1] as $match) { if(strstr($match,"]")) { |