mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
Don't convert configuration values to strings
This commit is contained in:
parent
7fd7e53e4a
commit
d00f0fb1f4
@ -207,12 +207,10 @@ consult(File) ->
|
||||
end
|
||||
end.
|
||||
|
||||
parserl([$>, $\s | String]) ->
|
||||
{ok, A2, _} = erl_scan:string(String),
|
||||
parserl(<<"> ", Term/binary>>) ->
|
||||
{ok, A2, _} = erl_scan:string(binary_to_list(Term)),
|
||||
{ok, A3} = erl_parse:parse_term(A2),
|
||||
A3;
|
||||
parserl(B) when is_binary(B) ->
|
||||
parserl(binary_to_list(B));
|
||||
parserl({A, B}) ->
|
||||
{parserl(A), parserl(B)};
|
||||
parserl([El|Tail]) ->
|
||||
|
Loading…
Reference in New Issue
Block a user