mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-24 17:29:28 +01:00
Replace jlib:nameprep/1 by exmpp_stringprep:nameprep/1 and change the
error handling. PR: EJABP-1 SVN Revision: 1628
This commit is contained in:
parent
71bfefa788
commit
4a9892fa15
@ -10,8 +10,9 @@
|
||||
|
||||
* src/ejabberd_s2s_in.erl (wait_for_feature_request/2),
|
||||
src/ejabberd_router.erl (register_route/2, unregister_route/1),
|
||||
src/ejabberd_ctl.erl (process/1): Replace jlib:nameprep/1 by
|
||||
exmpp_stringprep:nameprep/1 and change the error handling.
|
||||
src/ejabberd_ctl.erl (process/1), src/ejabberd_rdbms.erl
|
||||
(needs_odbc/1): Replace jlib:nameprep/1 by exmpp_stringprep:nameprep/1
|
||||
and change the error handling.
|
||||
|
||||
* src/ejabberd_config.erl (normalize_hosts/2): Replace jlib:nodeprep/1
|
||||
by exmpp_stringprep:nodeprep/1 and change the error handling.
|
||||
|
@ -70,9 +70,14 @@ start_odbc(Host) ->
|
||||
|
||||
%% Returns true if we have configured odbc_server for the given host
|
||||
needs_odbc(Host) ->
|
||||
LHost = jlib:nameprep(Host),
|
||||
case ejabberd_config:get_local_option({odbc_server, LHost}) of
|
||||
undefined ->
|
||||
false;
|
||||
_ -> true
|
||||
try
|
||||
LHost = exmpp_stringprep:nameprep(Host),
|
||||
case ejabberd_config:get_local_option({odbc_server, LHost}) of
|
||||
undefined ->
|
||||
false;
|
||||
_ -> true
|
||||
end
|
||||
catch
|
||||
_ ->
|
||||
false
|
||||
end.
|
||||
|
Loading…
Reference in New Issue
Block a user