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

index 8c4e3e24adb11ed2bd56f49ec80cbd0c58b4606c..92d4de33a16a9b38a6cb9c8edd728e4e953debf7 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}++;