Mercurial > prosody-hg
changeset 14189:12c01089bdb7 13.0
mod_vcard: Skip invalid photo data
| author | Waqas Hussain <waqas20@gmail.com> |
|---|---|
| date | Tue, 26 May 2026 01:31:31 -0400 |
| parents | e23b9651145d |
| children | 9b0a65e64697 |
| files | plugins/mod_vcard.lua |
| diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_vcard.lua Mon May 25 16:23:45 2026 +0100 +++ b/plugins/mod_vcard.lua Tue May 26 01:31:31 2026 -0400 @@ -68,5 +68,6 @@ local photo_b64 = photo:get_child_text("BINVAL"); local photo_raw = photo_b64 and base64.decode(photo_b64); + if not photo_raw then return end return (sha1(photo_raw, true)); end
