mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
* src/mod_muc/mod_muc_log.erl: Recognise more URI schemes in logged HTML (EJAB-279) (Thanks to qu1j0t3).
SVN Revision: 815
This commit is contained in:
parent
1b19d72e6f
commit
0b0c889bca
@ -1,5 +1,8 @@
|
||||
2007-07-17 Mickael Remond <mickael.remond@process-one.net>
|
||||
|
||||
* src/mod_muc/mod_muc_log.erl: Recognise more URI schemes in
|
||||
logged HTML (EJAB-279) (Thanks to qu1j0t3).
|
||||
|
||||
* src/ejabberd_s2s_out.erl: Improved place of the INFO /
|
||||
DEBUG printout.
|
||||
|
||||
|
@ -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]")).
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user