From 4d1c399ff6391b70e15a2c06d5bec10e2aaa3d3c Mon Sep 17 00:00:00 2001 From: Matt Selsky Date: Thu, 11 Dec 2014 18:00:18 +0000 Subject: Bug 1102842 - remove and/or unwhitelist unsafe filters. r=gerv, a=simon. --- Bugzilla/Template.pm | 29 ----------------------------- 1 file changed, 29 deletions(-) (limited to 'Bugzilla') 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 ? ''.$_[0].'' : $_[0]; - } - }, 1 - ], - - closed => [ - sub { - my($context, $isclosed) = @_; - return sub { - return $isclosed ? ''.$_[0].'' : $_[0]; - } - }, 1 - ], - - obsolete => [ - sub { - my($context, $isobsolete) = @_; - return sub { - return $isobsolete ? ''.$_[0].'' : $_[0]; - } - }, 1 - ], - # Returns the text with backslashes, single/double quotes, # and newlines/carriage returns escaped for use in JS strings. js => sub { -- cgit v1.2.3-24-g4f1b