]> 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:14:34 +0000 (06:14 +0000)
committerlpsolit%gmail.com <>
Tue, 7 Mar 2006 06:14:34 +0000 (06:14 +0000)
t/008filter.t

index 3fb70b94df6862b41219d1536a3983745b4c2b58..02456e73a53dda134c1e6cebcd1ba8121f72fe62 100644 (file)
@@ -160,6 +160,9 @@ sub directive_ok {
     $directive =~ s/^[+-]?\s*//;
     $directive =~ s/\s*[+-]?$//;
 
+    # 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}++;