From: Michael Date: Mon, 6 Aug 2018 17:11:40 +0000 (+0000) Subject: Issue 5436: Don't store tags that are too long X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=3f612e064150ac6a07815e47d899fe64aa285df3;p=friendica.git Issue 5436: Don't store tags that are too long --- diff --git a/src/Protocol/PortableContact.php b/src/Protocol/PortableContact.php index 172991cd3b..a94affd047 100644 --- a/src/Protocol/PortableContact.php +++ b/src/Protocol/PortableContact.php @@ -1471,7 +1471,9 @@ class PortableContact $tags = []; foreach ($data['tags'] as $tag) { $tag = mb_strtolower($tag); - $tags[$tag] = $tag; + if (count($tag) < 100) { + $tags[$tag] = $tag; + } } foreach ($tags as $tag) {