]> git.mxchange.org Git - friendica.git/blobdiff - src/Protocol/PortableContact.php
Issue 5436: Don't store tags that are too long
[friendica.git] / 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) {