diff options
author | Mickaël Rémond <mickael.remond@process-one.net> | 2007-07-17 07:55:26 +0000 |
---|---|---|
committer | Mickaël Rémond <mickael.remond@process-one.net> | 2007-07-17 07:55:26 +0000 |
commit | 0b0c889bca1e8201a7d9cdd6fd84a7f191a088b2 (patch) | |
tree | e9814fbf9241f865e642e4b39399911263af105a /src/mod_muc | |
parent | * src/ejabberd_s2s_out.erl: Improved place of the INFO / DEBUG printout (EJAB... (diff) |
* src/mod_muc/mod_muc_log.erl: Recognise more URI schemes in logged HTML (EJAB-279) (Thanks to qu1j0t3).
SVN Revision: 815
Diffstat (limited to 'src/mod_muc')
-rw-r--r-- | src/mod_muc/mod_muc_log.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mod_muc/mod_muc_log.erl b/src/mod_muc/mod_muc_log.erl index 8e51b4ce..1f7fcb9c 100644 --- a/src/mod_muc/mod_muc_log.erl +++ b/src/mod_muc/mod_muc_log.erl @@ -669,7 +669,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|ftp)://.[^ ]*", link_regexp(NoFollow))), + S5 = element(2, regexp:gsub(S4, "[-+.a-zA-Z0-9]+://[^] )\'\"}]+", link_regexp(NoFollow))), %% Remove 'right-to-left override' unicode character 0x202e element(2, regexp:gsub(S5, [226,128,174], "[RLO]")). |