summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Template.pm
diff options
context:
space:
mode:
authorMatt Selsky <selsky@columbia.edu>2014-12-11 19:00:18 +0100
committerGervase Markham <gerv@gerv.net>2014-12-11 19:00:18 +0100
commit4d1c399ff6391b70e15a2c06d5bec10e2aaa3d3c (patch)
tree28bc9ec2a5f74208167baed68cbaebe26b451c8c /Bugzilla/Template.pm
parent7b8a5d16b6c84b0f2b8b8074e9f63888ca6df249 (diff)
downloadbugzilla-4d1c399ff6391b70e15a2c06d5bec10e2aaa3d3c.tar.gz
bugzilla-4d1c399ff6391b70e15a2c06d5bec10e2aaa3d3c.tar.xz
Bug 1102842 - remove and/or unwhitelist unsafe filters. r=gerv, a=simon.
Diffstat (limited to 'Bugzilla/Template.pm')
-rw-r--r--Bugzilla/Template.pm29
1 files changed, 0 insertions, 29 deletions
diff --git a/Bugzilla/Template.pm b/Bugzilla/Template.pm
index 26ef37585..2b068dc2c 100644
--- a/Bugzilla/Template.pm
+++ b/Bugzilla/Template.pm
@@ -759,35 +759,6 @@ sub create {
# built-in filter, please also add a stub filter to t/004template.t.
FILTERS => {
- # Render text in required style.
-
- inactive => [
- sub {
- my($context, $isinactive) = @_;
- return sub {
- return $isinactive ? '<span class="bz_inactive">'.$_[0].'</span>' : $_[0];
- }
- }, 1
- ],
-
- closed => [
- sub {
- my($context, $isclosed) = @_;
- return sub {
- return $isclosed ? '<span class="bz_closed">'.$_[0].'</span>' : $_[0];
- }
- }, 1
- ],
-
- obsolete => [
- sub {
- my($context, $isobsolete) = @_;
- return sub {
- return $isobsolete ? '<span class="bz_obsolete">'.$_[0].'</span>' : $_[0];
- }
- }, 1
- ],
-
# Returns the text with backslashes, single/double quotes,
# and newlines/carriage returns escaped for use in JS strings.
js => sub {