25
1
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:
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 _ -> C
end || C <- S]; end || C <- S];
crypt(S) when is_binary(S) -> crypt(S) when is_binary(S) ->