Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
193c5ac6
Commit
193c5ac6
authored
Aug 01, 2003
by
myk%mozilla.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Partial fix for bug 120030: adds template filter for obscuring email addresses.
Patch by Stephen Lee <slee@@wilcoxassoc.com>. r=myk,a=myk
parent
393dfb83
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
0 deletions
+10
-0
Template.pm
Bugzilla/Template.pm
+8
-0
checksetup.pl
checksetup.pl
+1
-0
004template.t
t/004template.t
+1
-0
No files found.
Bugzilla/Template.pm
View file @
193c5ac6
...
...
@@ -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'
,
...
...
checksetup.pl
View file @
193c5ac6
...
...
@@ -1057,6 +1057,7 @@ END
bug_link
=>
[
sub
{
return
sub
{
return
$_
;
}
},
1
],
csv
=>
sub
{
return
$_
;
},
time
=>
sub
{
return
$_
;
},
obscure_email
=>
sub
{
return
$_
;
},
},
})
||
die
(
"Could not create Template Provider: "
.
Template::
Provider
->
error
()
.
"\n"
);
...
...
t/004template.t
View file @
193c5ac6
...
...
@@ -97,6 +97,7 @@ foreach my $include_path (@include_paths) {
bug_link
=>
[
sub
{
return
sub
{
return
$_
;
}
},
1
]
,
csv
=>
sub
{
return
$_
}
,
time
=>
sub
{
return
$_
}
,
obscure_email
=>
sub
{
return
$_
}
,
},
}
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment