Don't process empty hash tags in Model\Item
- Addresses https://github.com/friendica/friendica/issues/7677#issuecomment-565372628
This commit is contained in:
parent
ff3a0a0eba
commit
b800083a2b
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue