mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-20 17:27:00 +01:00
Fix invalid_encoding error when using extended plane characters in vcard.
This commit is contained in:
parent
5a8f1ca528
commit
78c09789f7
@ -56,7 +56,7 @@
|
||||
{rebar_elixir_plugin, ".*", {git, "https://github.com/processone/rebar_elixir_plugin", "0.1.0"}}}},
|
||||
{if_var_true, sqlite,
|
||||
{sqlite3, ".*", {git, "https://github.com/processone/erlang-sqlite3", {tag, "1.1.12"}}}},
|
||||
{stringprep, ".*", {git, "https://github.com/processone/stringprep", {tag, "1.0.25"}}},
|
||||
{stringprep, ".*", {git, "https://github.com/processone/stringprep", "6d143ebcacaafe3a8adc669300a8ad001402b3d8"}},
|
||||
{if_var_true, stun,
|
||||
{stun, ".*", {git, "https://github.com/processone/stun", {tag, "1.0.43"}}}},
|
||||
{xmpp, ".*", {git, "https://github.com/processone/xmpp", {tag, "1.5.3"}}},
|
||||
|
@ -424,9 +424,9 @@ set_vcard(User, LServer, VCARD) ->
|
||||
|
||||
-spec string2lower(binary()) -> binary().
|
||||
string2lower(String) ->
|
||||
case stringprep:tolower(String) of
|
||||
case stringprep:tolower_nofilter(String) of
|
||||
Lower when is_binary(Lower) -> Lower;
|
||||
error -> str:to_lower(String)
|
||||
error -> String
|
||||
end.
|
||||
|
||||
-spec mk_tfield(binary(), binary(), binary()) -> xdata_field().
|
||||
|
Loading…
Reference in New Issue
Block a user