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. --- t/004template.t | 3 --- t/008filter.t | 6 +++--- 2 files changed, 3 insertions(+), 6 deletions(-) (limited to 't') diff --git a/t/004template.t b/t/004template.t index b0ca5a629..6e366c044 100644 --- a/t/004template.t +++ b/t/004template.t @@ -74,9 +74,6 @@ foreach my $include_path (@include_paths) { no_break => sub { return $_; } , js => sub { return $_ } , base64 => sub { return $_ } , - inactive => [ sub { return sub { return $_; } }, 1] , - closed => [ sub { return sub { return $_; } }, 1] , - obsolete => [ sub { return sub { return $_; } }, 1] , url_quote => sub { return $_ } , css_class_quote => sub { return $_ } , xml => sub { return $_ } , diff --git a/t/008filter.t b/t/008filter.t index fea018d43..1f5219f71 100644 --- a/t/008filter.t +++ b/t/008filter.t @@ -210,9 +210,9 @@ sub directive_ok { # Note: If a single directive prints two things, and only one is # filtered, we may not catch that case. return 1 if $directive =~ /FILTER\ (html|csv|js|base64|css_class_quote|ics| - quoteUrls|time|uri|xml|lower|html_light| - obsolete|inactive|closed|unitconvert| - txt|html_linebreak|markdown|none|null)\b/x; + quoteUrls|time|uri|xml|html_light| + unitconvert|txt|html_linebreak|markdown| + none|null)\b/x; return 0; } -- cgit v1.2.3-24-g4f1b