# HG changeset patch # User Waqas Hussain # Date 1779773491 14400 # Node ID 12c01089bdb769ea4f9b573bd7f00d26aebe2f08 # Parent e23b9651145de198edbeeab3f4be771674b33839 mod_vcard: Skip invalid photo data diff -r e23b9651145d -r 12c01089bdb7 plugins/mod_vcard.lua --- 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