diff options
author | Badlop <badlop@process-one.net> | 2009-04-14 18:25:58 +0000 |
---|---|---|
committer | Badlop <badlop@process-one.net> | 2009-04-14 18:25:58 +0000 |
commit | 1dad64a1ccc7fefce3f46787726490ab18ae5b2a (patch) | |
tree | cbe0faa87b8b999c03677daf301d6bfc7a24a4ee | |
parent | after check, last commit was useless (diff) |
* src/mod_muc/mod_muc_log.erl: Linkify also xmpp:..., as it was
done previously (thanks to Konstantin Khomoutov)(EJAB-850)
SVN Revision: 2020
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | src/mod_muc/mod_muc_log.erl | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -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-04-10 Christophe Romain <christophe.romain@process-one.net> * src/mod_caps.erl: Better handling of presence hook and caps clean diff --git a/src/mod_muc/mod_muc_log.erl b/src/mod_muc/mod_muc_log.erl index 2dba277e8..2b4200a41 100644 --- a/src/mod_muc/mod_muc_log.erl +++ b/src/mod_muc/mod_muc_log.erl @@ -752,7 +752,7 @@ htmlize2(S1, NoFollow) -> S2 = element(2, regexp:gsub(S1, "\\&", "\\&")), S3 = element(2, regexp:gsub(S2, "<", "\\<")), 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))), %% Remove 'right-to-left override' unicode character 0x202e element(2, regexp:gsub(S5, [226,128,174], "[RLO]")). |