Issue 5436: Don't store tags that are too long
This commit is contained in:
@@ -1471,8 +1471,10 @@ class PortableContact
|
||||
$tags = [];
|
||||
foreach ($data['tags'] as $tag) {
|
||||
$tag = mb_strtolower($tag);
|
||||
if (count($tag) < 100) {
|
||||
$tags[$tag] = $tag;
|
||||
}
|
||||
}
|
||||
|
||||
foreach ($tags as $tag) {
|
||||
DBA::insert('gserver-tag', ['gserver-id' => $gserver['id'], 'tag' => $tag], true);
|
||||
|
||||
Reference in New Issue
Block a user