]> git.mxchange.org Git - friendica.git/commitdiff
Issue 5436: Don't store tags that are too long
authorMichael <heluecht@pirati.ca>
Mon, 6 Aug 2018 17:11:40 +0000 (17:11 +0000)
committerMichael <heluecht@pirati.ca>
Mon, 6 Aug 2018 17:11:40 +0000 (17:11 +0000)
src/Protocol/PortableContact.php

index 172991cd3bea0bd008b5a1f0598251d694a31bf3..a94affd0470398e8f898ba66cb51147ca04a1eb4 100644 (file)
@@ -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) {