Don't process empty hash tags in Model\Item

- Addresses https://github.com/friendica/friendica/issues/7677#issuecomment-565372628
This commit is contained in:
Hypolite Petovan 2019-12-13 07:16:43 -05:00
parent ff3a0a0eba
commit b800083a2b
1 changed files with 1 additions and 1 deletions

View File

@ -2621,7 +2621,7 @@ class Item extends BaseObject
"#$2", $item["body"]);
foreach ($tags as $tag) {
if ((strpos($tag, '#') !== 0) || strpos($tag, '[url=') || $tag[1] == '#') {
if ((strpos($tag, '#') !== 0) || strpos($tag, '[url=') || strlen($tag) < 2 || $tag[1] == '#') {
continue;
}