#1304 mod_vcard_legacy: Traceback if avatar has invalid base64

Reporter Zash
Owner Nobody
Created
Updated
Stars ★ (1)
Tags
  • Milestone-0.11
  • Status-Accepted
  • Priority-Medium
  • Difficulty-Easy
  • Type-Defect
  1. Zash on

    What steps will reproduce the problem? <iq id='a' type='set'> <vCard xmlns='vcard-temp'> <PHOTO> <TYPE>whatever</TYPE> <BINVAL>Not base64!</BINVAL> </PHOTO> </vCard> </iq> What is the expected output? Something What do you see instead? error Traceback[c2s]: plugins/mod_vcard_legacy.lua:237: bad argument #1 to 'sha1' (string expected, got nil) What version of the product are you using? 0.11.2 (+7) 7bfc4269dc36 Please provide any additional information below.

  2. Zash on

    Changes
    • tags Difficulty-Easy

New comment

Not published. Used for spam prevention and optional update notifications.