mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-22 16:20:52 +01:00
* src/mod_muc/mod_muc_log.erl: Linkify also xmpp:..., as it was
done previously (thanks to Konstantin Khomoutov)(EJAB-850) SVN Revision: 2020
This commit is contained in:
parent
ab4750ec1e
commit
8782597c1a
@ -1,3 +1,8 @@
|
|||||||
|
2009-04-14 Badlop <badlop@process-one.net>
|
||||||
|
|
||||||
|
* src/mod_muc/mod_muc_log.erl: Linkify also xmpp:..., as it was
|
||||||
|
done previously (thanks to Konstantin Khomoutov)(EJAB-850)
|
||||||
|
|
||||||
2009-03-20 Christophe Romain <christophe.romain@process-one.net>
|
2009-03-20 Christophe Romain <christophe.romain@process-one.net>
|
||||||
|
|
||||||
* src/mod_caps.erl: Better handling of presence hook and caps clean
|
* src/mod_caps.erl: Better handling of presence hook and caps clean
|
||||||
|
@ -767,7 +767,7 @@ htmlize2(S1, NoFollow) ->
|
|||||||
S2 = element(2, regexp:gsub(S1, "\\&", "\\&")),
|
S2 = element(2, regexp:gsub(S1, "\\&", "\\&")),
|
||||||
S3 = element(2, regexp:gsub(S2, "<", "\\<")),
|
S3 = element(2, regexp:gsub(S2, "<", "\\<")),
|
||||||
S4 = element(2, regexp:gsub(S3, ">", "\\>")),
|
S4 = element(2, regexp:gsub(S3, ">", "\\>")),
|
||||||
S5 = element(2, regexp:gsub(S4, "(http|https|ftp|mailto|xmpp)://[^] )\'\"}]+",
|
S5 = element(2, regexp:gsub(S4, "((http|https|ftp)://|(mailto|xmpp):)[^] )\'\"}]+",
|
||||||
link_regexp(NoFollow))),
|
link_regexp(NoFollow))),
|
||||||
%% Remove 'right-to-left override' unicode character 0x202e
|
%% Remove 'right-to-left override' unicode character 0x202e
|
||||||
element(2, regexp:gsub(S5, [226,128,174], "[RLO]")).
|
element(2, regexp:gsub(S5, [226,128,174], "[RLO]")).
|
||||||
|
Loading…
Reference in New Issue
Block a user