25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-24 16:23:40 +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()}.
do_create_image(Key) ->
FileName = get_prog_name(),
case length(string:split(FileName, "/")) == 1 of
case length(binary:split(FileName, <<"/">>)) == 1 of
true ->
do_create_image(Key, misc:binary_to_atom(FileName));
false ->