]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 329295: 008filter fails if . is not in PATH - Patch by Vlad Dascalu <vladd@bugzil... 2.16
authorlpsolit%gmail.com <>
Tue, 7 Mar 2006 06:09:50 +0000 (06:09 +0000)
committerlpsolit%gmail.com <>
Tue, 7 Mar 2006 06:09:50 +0000 (06:09 +0000)
t/008filter.t

index c9e063c78a0418a494864647d8f20992d3b47a74..f2a9a9853c055d3baf75169499638ab1dd9c0995 100644 (file)
@@ -141,7 +141,10 @@ foreach my $path (@Support::Templates::include_paths) {
             # filtered, we may not catch that case.
             next if $directive =~ /FILTER\ (html|csv|js|url_quote|quoteUrls|
                                             time|uri|xml)/x;
-
+            
+            # Make sure we're not looking for ./ in the $safe hash
+            $file =~ s#^\./##;
+            
             # Exclude those on the nofilter list
             if (defined($safe{$file}{$directive})) {
                 $safe{$file}{$directive}++;