aboutsummaryrefslogtreecommitdiffstats
path: root/include/text.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2011-11-25 22:41:50 -0800
committerfriendica <info@friendica.com>2011-11-25 22:41:50 -0800
commit0f4a42f550b5bc863cec7c7a3fca26a028599dcc (patch)
treef86801eac577e77ee654d9b0365037a4b558f500 /include/text.php
parent6b93324c11439e739bfe32e0be6ddd07f72ea294 (diff)
downloadvolse-hubzilla-0f4a42f550b5bc863cec7c7a3fca26a028599dcc.tar.gz
volse-hubzilla-0f4a42f550b5bc863cec7c7a3fca26a028599dcc.tar.bz2
volse-hubzilla-0f4a42f550b5bc863cec7c7a3fca26a028599dcc.zip
start on bug #227 - more to do
Diffstat (limited to 'include/text.php')
-rw-r--r--include/text.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/text.php b/include/text.php
index 08803cc9b..c4fd76e3e 100644
--- a/include/text.php
+++ b/include/text.php
@@ -492,6 +492,9 @@ function get_tags($s) {
// ignore strictly numeric tags like #1
if((strpos($mtch,'#') === 0) && ctype_digit(substr($mtch,1)))
continue;
+ // try not to catch url fragments
+ if(strpos($s,$mtch) && preg_match('/[a-zA-z0-9\/]/',substr($s,strpos($s,$mtch)-1,1)))
+ continue;
$ret[] = $mtch;
}
}