mirror of
https://github.com/friendica/friendica
synced 2024-12-21 17:14:54 +01:00
Merge pull request #5574 from annando/issue-5436
Issue 5436: Don't store tags that are too long
This commit is contained in:
commit
c5040f4daa
1 changed files with 3 additions and 1 deletions
|
@ -1471,7 +1471,9 @@ class PortableContact
|
||||||
$tags = [];
|
$tags = [];
|
||||||
foreach ($data['tags'] as $tag) {
|
foreach ($data['tags'] as $tag) {
|
||||||
$tag = mb_strtolower($tag);
|
$tag = mb_strtolower($tag);
|
||||||
$tags[$tag] = $tag;
|
if (count($tag) < 100) {
|
||||||
|
$tags[$tag] = $tag;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach ($tags as $tag) {
|
foreach ($tags as $tag) {
|
||||||
|
|
Loading…
Reference in a new issue