Photos from LDAP not displayed in some clients, lacking TYPE (thanks to Alex Crycheck)(EJAB-1554)

This commit is contained in:
Badlop 2012-04-16 12:25:07 +02:00
parent 58d49d2867
commit 5a09d671ab
1 changed files with 1 additions and 0 deletions

View File

@ -352,6 +352,7 @@ ldap_attribute_to_vcard(vCard, {"email", Value}) ->
ldap_attribute_to_vcard(vCard, {"photo", Value}) ->
{xmlelement,"PHOTO",[],[
{xmlelement,"TYPE",[],[{xmlcdata,"image/jpeg"}]},
{xmlelement,"BINVAL",[],[{xmlcdata, jlib:encode_base64(Value)}]}]};
ldap_attribute_to_vcard(vCardN, {"family", Value}) ->