summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--t/008filter.t6
1 files changed, 4 insertions, 2 deletions
diff --git a/t/008filter.t b/t/008filter.t
index bc8c6aa15..adbbf9e9b 100644
--- a/t/008filter.t
+++ b/t/008filter.t
@@ -73,8 +73,10 @@ foreach my $path (@Support::Templates::include_paths) {
foreach my $file (keys %safe) {
my $orig_file = $file;
$file =~ s|/|\\|g;
- $safe{$file} = $safe{$orig_file};
- delete $safe{$orig_file};
+ if ($file ne $orig_file) {
+ $safe{$file} = $safe{$orig_file};
+ delete $safe{$orig_file};
+ }
}
}
}