Handle multiple < and > in mod_muc_log plaintext mode (EJAB-1640)
This commit is contained in:
parent
e85f7566dd
commit
0b96b745bf
|
@ -797,8 +797,8 @@ htmlize(S1, FileFormat) ->
|
|||
%% true means 'apply nofollow on links'.
|
||||
htmlize(S0, _NoFollow, plaintext) ->
|
||||
S1 = ejabberd_regexp:greplace(S0, "~", ?PLAINTEXT_CO),
|
||||
S1x = ejabberd_regexp:replace(S1, "<", ?PLAINTEXT_IN),
|
||||
ejabberd_regexp:replace(S1x, ">", ?PLAINTEXT_OUT);
|
||||
S1x = ejabberd_regexp:greplace(S1, "<", ?PLAINTEXT_IN),
|
||||
ejabberd_regexp:greplace(S1x, ">", ?PLAINTEXT_OUT);
|
||||
htmlize(S1, NoFollow, _FileFormat) ->
|
||||
S2_list = string:tokens(S1, "\n"),
|
||||
lists:foldl(
|
||||
|
|
Loading…
Reference in New Issue