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