[Rt-commit] rt branch, 4.0/allow-mailto-links-in-html, created. rt-4.0.10-73-g6ee684b
Thomas Sibley
trs at bestpractical.com
Thu Mar 7 18:57:01 EST 2013
The branch, 4.0/allow-mailto-links-in-html has been created
at 6ee684bdb51713895af136c6262a86d3279f8a94 (commit)
- Log -----------------------------------------------------------------
commit 6ee684bdb51713895af136c6262a86d3279f8a94
Author: Thomas Sibley <trs at bestpractical.com>
Date: Thu Mar 7 15:55:47 2013 -0800
Allow mailto: links in HTML
This is useful for HTML email which includes linked email addresses and
also search formats which want to use a value in a mailto: link for
convenience. There is no harm in mailto: links.
diff --git a/lib/RT/Interface/Web.pm b/lib/RT/Interface/Web.pm
index 7442272..3987976 100644
--- a/lib/RT/Interface/Web.pm
+++ b/lib/RT/Interface/Web.pm
@@ -3274,9 +3274,9 @@ our @SCRUBBER_ALLOWED_TAGS = qw(
);
our %SCRUBBER_ALLOWED_ATTRIBUTES = (
- # Match http, ftp and relative urls
+ # Match http, https, ftp, mailto and relative urls
# XXX: we also scrub format strings with this module then allow simple config options
- href => qr{^(?:http:|ftp:|https:|/|__Web(?:Path|BaseURL|URL)__)}i,
+ href => qr{^(?:https?:|ftp:|mailto:|/|__Web(?:Path|BaseURL|URL)__)}i,
face => 1,
size => 1,
target => 1,
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list