1
0
Fork 0

Merge pull request #7942 from MrPetovan/bug/notices

Don't process empty hash tags in Model\Item
This commit is contained in:
Michael Vogel 2019-12-13 17:08:01 +01:00 committed by GitHub
commit 0b13a7acd3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;
}