mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-26 16:26:24 +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_s2s_in.erl (wait_for_feature_request/2),
|
||||||
src/ejabberd_router.erl (register_route/2, unregister_route/1),
|
src/ejabberd_router.erl (register_route/2, unregister_route/1),
|
||||||
src/ejabberd_ctl.erl (process/1): Replace jlib:nameprep/1 by
|
src/ejabberd_ctl.erl (process/1), src/ejabberd_rdbms.erl
|
||||||
exmpp_stringprep:nameprep/1 and change the error handling.
|
(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
|
* src/ejabberd_config.erl (normalize_hosts/2): Replace jlib:nodeprep/1
|
||||||
by exmpp_stringprep:nodeprep/1 and change the error handling.
|
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
|
%% Returns true if we have configured odbc_server for the given host
|
||||||
needs_odbc(Host) ->
|
needs_odbc(Host) ->
|
||||||
LHost = jlib:nameprep(Host),
|
try
|
||||||
case ejabberd_config:get_local_option({odbc_server, LHost}) of
|
LHost = exmpp_stringprep:nameprep(Host),
|
||||||
undefined ->
|
case ejabberd_config:get_local_option({odbc_server, LHost}) of
|
||||||
false;
|
undefined ->
|
||||||
_ -> true
|
false;
|
||||||
|
_ -> true
|
||||||
|
end
|
||||||
|
catch
|
||||||
|
_ ->
|
||||||
|
false
|
||||||
end.
|
end.
|
||||||
|
Loading…
Reference in New Issue
Block a user