From 4886d088e9889d828bc0e43de4f8844f210f785d Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Fri, 9 Aug 2019 22:19:51 +0200 Subject: use stripos() to match the body against terms in format_hashtags() --- include/text.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/text.php') 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 .= ' '; -- cgit v1.2.3