mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-30 16:36:29 +01:00
fixes ampersand escaping (EJAB-1258)
This commit is contained in:
parent
d6722e353f
commit
445691bab1
@ -170,7 +170,7 @@ do_sub(S, {RegExp, New, Times}, Iter) ->
|
|||||||
end.
|
end.
|
||||||
|
|
||||||
replace_amps(String) ->
|
replace_amps(String) ->
|
||||||
lists:map(
|
lists:flatmap(
|
||||||
fun($&) -> "\\&";
|
fun($&) -> "\\&";
|
||||||
(Chr) -> Chr
|
(Chr) -> [Chr]
|
||||||
end, String).
|
end, String).
|
||||||
|
Loading…
Reference in New Issue
Block a user