From 3f612e064150ac6a07815e47d899fe64aa285df3 Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 6 Aug 2018 17:11:40 +0000 Subject: [PATCH] Issue 5436: Don't store tags that are too long --- src/Protocol/PortableContact.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Protocol/PortableContact.php b/src/Protocol/PortableContact.php index 172991cd3..a94affd04 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) {