24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-06-06 21:37:17 +02:00

Escape iolist correctly when NIFs are disabled (EJAB-1462)

This commit is contained in:
Evgeniy Khramtsov 2011-06-11 23:28:10 +10:00
parent aff99097e7
commit f4d0b201ad

View File

@ -111,6 +111,7 @@ crypt(S) when is_list(S) ->
$> -> ">";
$" -> """;
$' -> "'";
_ when is_list(C); is_binary(C) -> crypt(C);
_ -> C
end || C <- S];
crypt(S) when is_binary(S) ->