mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-26 16:26:24 +01:00
Escape iolist correctly when NIFs are disabled (EJAB-1462)
This commit is contained in:
parent
aff99097e7
commit
f4d0b201ad
@ -111,6 +111,7 @@ crypt(S) when is_list(S) ->
|
|||||||
$> -> ">";
|
$> -> ">";
|
||||||
$" -> """;
|
$" -> """;
|
||||||
$' -> "'";
|
$' -> "'";
|
||||||
|
_ when is_list(C); is_binary(C) -> crypt(C);
|
||||||
_ -> C
|
_ -> C
|
||||||
end || C <- S];
|
end || C <- S];
|
||||||
crypt(S) when is_binary(S) ->
|
crypt(S) when is_binary(S) ->
|
||||||
|
Loading…
Reference in New Issue
Block a user