25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-22 16:20:52 +01:00

Improve validation of configured language options

This commit is contained in:
Evgeny Khramtsov 2019-01-19 11:29:45 +03:00
parent a8b1a58cc8
commit 5e9945f060
2 changed files with 2 additions and 2 deletions

View File

@ -1449,7 +1449,7 @@ opt_type(hosts) ->
[iolist_to_binary(H) || H <- L]
end;
opt_type(language) ->
fun iolist_to_binary/1;
fun xmpp_lang:check/1;
opt_type(max_fsm_queue) ->
fun (I) when is_integer(I), I > 0 -> I end;
opt_type(default_db) ->

View File

@ -988,7 +988,7 @@ mod_opt_type({default_room_options, presence_broadcast}) ->
end, L)
end;
mod_opt_type({default_room_options, lang}) ->
fun iolist_to_binary/1.
fun xmpp_lang:check/1.
mod_options(Host) ->
[{access, all},