aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2019-08-09 22:19:51 +0200
committerMario Vavti <mario@mariovavti.com>2019-08-09 22:19:51 +0200
commit4886d088e9889d828bc0e43de4f8844f210f785d (patch)
tree2761dd627746790f62c31a1e38b21a538ace503b /include
parent6eec6e2d65d5d17665fd8a4d8ecc1b22ed364f24 (diff)
downloadvolse-hubzilla-4886d088e9889d828bc0e43de4f8844f210f785d.tar.gz
volse-hubzilla-4886d088e9889d828bc0e43de4f8844f210f785d.tar.bz2
volse-hubzilla-4886d088e9889d828bc0e43de4f8844f210f785d.zip
use stripos() to match the body against terms in format_hashtags()
Diffstat (limited to 'include')
-rw-r--r--include/text.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/text.php b/include/text.php
index 572b43916..54ad9ec7a 100644
--- a/include/text.php
+++ b/include/text.php
@@ -1574,7 +1574,7 @@ function format_hashtags(&$item) {
continue;
if(empty($t['url']))
continue;
- if(strpos($item['body'], $t['url']) || strpos($item['body'], '#' . $t['term']))
+ if(strpos($item['body'], $t['url']) || stripos($item['body'], '#' . $t['term']))
continue;
if($s)
$s .= ' ';