Crash in mod_vcard.erl when user try set special chars #2384
Labels
community
Non ESL issues and PRs
in backlog
Community request added to backlog and waiting for implementation.
MongooseIM version: 3.3.0
Installed from: https://github.com/esl/MongooseIM/tree/3.3.0
Erlang/OTP version: 20
Hi All,
When user try set nickname with special chars like 😊 - the
mod_vcard.erl
is crashed by reason that inside ofmod_vcard.erl
is usedstringprep:tolower/1
, andstringprep:tolower/1
will return atomerror
for binaries eg:<<240,159,152,138>>
. Thebinary_to_list/1
don't working with atoms, maybe make sense usecowboy_bstr:to_lower/1
instead ofstringprep:tolower/1
?P.S. I was created ticket about this issue for
stringprep
- processone/stringprep#9Cheers!
The text was updated successfully, but these errors were encountered: