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

Use alternative split/2 function that works with Erlang/OTP as old as 19.3

This commit is contained in:
Badlop 2023-01-03 20:32:52 +01:00
parent ce89ff07e7
commit 92d7be4338

View File

@ -398,7 +398,7 @@ create_image(Limiter, Key) ->
{error, image_error()}. {error, image_error()}.
do_create_image(Key) -> do_create_image(Key) ->
FileName = get_prog_name(), FileName = get_prog_name(),
case length(string:split(FileName, "/")) == 1 of case length(binary:split(FileName, <<"/">>)) == 1 of
true -> true ->
do_create_image(Key, misc:binary_to_atom(FileName)); do_create_image(Key, misc:binary_to_atom(FileName));
false -> false ->