Skip to content

Commit

Permalink
jmap_contact: localized Card default language may not be set
Browse files Browse the repository at this point in the history
Signed-off-by: Robert Stepanek <[email protected]>
  • Loading branch information
rsto committed Jul 27, 2023
1 parent 95c285b commit 16ef82a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion imap/jmap_contact.c
Original file line number Diff line number Diff line change
Expand Up @@ -10091,7 +10091,7 @@ static int _jscard_to_vcard(struct jmap_req *req,

/* If language tag == deflang,
don't add LANGUAGE parameter, but still force ALTID parameter */
l10n.lang = strcasecmp(lang, l10n.deflang) ? lang : "";
l10n.lang = strcasecmpsafe(lang, l10n.deflang) ? lang : "";

jmap_parser_push(&parser, "localizations");
jmap_parser_push(&parser, lang);
Expand Down

0 comments on commit 16ef82a

Please sign in to comment.