Merge pull request #7942 from MrPetovan/bug/notices
Don't process empty hash tags in Model\Item
This commit is contained in:
commit
0b13a7acd3
|
@ -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 New Issue
Block a user