aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorroot <root@diekershoff.homeunix.net>2011-01-24 07:44:08 +0100
committerroot <root@diekershoff.homeunix.net>2011-01-24 07:44:08 +0100
commit80a7e68528e7a4d95c168889f1a2fb9eccf6e3b9 (patch)
tree5a59cf3b29a70f22728e25d7c46ab8648bcda407 /boot.php
parent71294faf2c182a678e5889b2ff9cabed16d83c82 (diff)
parent4198efe03570606b35f3aba6cdf7f80de20384f4 (diff)
downloadvolse-hubzilla-80a7e68528e7a4d95c168889f1a2fb9eccf6e3b9.tar.gz
volse-hubzilla-80a7e68528e7a4d95c168889f1a2fb9eccf6e3b9.tar.bz2
volse-hubzilla-80a7e68528e7a4d95c168889f1a2fb9eccf6e3b9.zip
Merge branch 'master' of git://github.com/tobiasd/friendika
Diffstat (limited to 'boot.php')
-rw-r--r--boot.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/boot.php b/boot.php
index 05b33abd6..45fd8d16f 100644
--- a/boot.php
+++ b/boot.php
@@ -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,"]")) {