Partial fix for bug 120030: adds template filter for obscuring email addresses.
Patch by Stephen Lee <slee@@wilcoxassoc.com>. r=myk,a=myk git-svn-id: svn://10.0.0.236/trunk@145447 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -244,6 +244,14 @@ sub create {
|
||||
|
||||
# Format a time for display (more info in Bugzilla::Util)
|
||||
time => \&Bugzilla::Util::format_time,
|
||||
|
||||
# Simple filter to obscure the '@' in user visible strings
|
||||
# See bug 120030 for details
|
||||
obscure_email => sub {
|
||||
my ($var) = @_;
|
||||
$var =~ s/\@/\@/g;
|
||||
return $var;
|
||||
},
|
||||
},
|
||||
|
||||
PLUGIN_BASE => 'Bugzilla::Template::Plugin',
|
||||
|
||||
Reference in New Issue
Block a user