diff options
author | myk%mozilla.org <> | 2003-08-01 12:57:19 +0200 |
---|---|---|
committer | myk%mozilla.org <> | 2003-08-01 12:57:19 +0200 |
commit | 193c5ac6be8e883c57e4caf3c87b181db0351be0 (patch) | |
tree | d7a28654e54352fa344dbfef480f9223ee889704 /Bugzilla | |
parent | 393dfb830acf397c180b81e333c93b0d4d76258c (diff) | |
download | bugzilla-193c5ac6be8e883c57e4caf3c87b181db0351be0.tar.gz bugzilla-193c5ac6be8e883c57e4caf3c87b181db0351be0.tar.xz |
Partial fix for bug 120030: adds template filter for obscuring email addresses.
Patch by Stephen Lee <slee@@wilcoxassoc.com>.
r=myk,a=myk
Diffstat (limited to 'Bugzilla')
-rw-r--r-- | Bugzilla/Template.pm | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Bugzilla/Template.pm b/Bugzilla/Template.pm index 6c3e2161a..d5cb1afd7 100644 --- a/Bugzilla/Template.pm +++ b/Bugzilla/Template.pm @@ -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', |