base64 bug in jlib:encode_base64?

I am seeing corrupted images from ldap vcards.

jlib:encode_base64 is used in mod_vcard_ldap.erl but the values showing up in my ejabberd.log don't match those from an ldapsearch (jpegImage::) - I can copy the contents from ldapsearch, base64_decode with perl, and produce a correct image. taking the base64 text from my ejabberd.log produces the same corrupt image.

The difference in the base64 start early in the file, probably after the jpeg header stuff?

Is this known?

Probably it's this:

Syndicate content