25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-20 16:15:59 +01:00

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

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}) ->