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

index c842b791787728a1ef4ec9a40dd01db0b760ec5c..a3a56e005328c1f5a1511eb6d7d6aa38e39899c0 100644 (file)
@@ -163,6 +163,9 @@ sub directive_ok {
     # Empty directives are ok; they are usually line break helpers
     return 1 if $directive eq '';
 
+    # 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}++;