summaryrefslogtreecommitdiffstats
path: root/t/008filter.t
diff options
context:
space:
mode:
authorjocuri%softhome.net <>2004-12-07 02:11:15 +0100
committerjocuri%softhome.net <>2004-12-07 02:11:15 +0100
commitd4bbccb5447134e7b09426e3199ac869e7c97563 (patch)
treef9db080ef01695afeb45e75ff5e6a016633cc811 /t/008filter.t
parentc66a20756d1ff38efce0ffd4bd63ccf8651127c9 (diff)
downloadbugzilla-d4bbccb5447134e7b09426e3199ac869e7c97563.tar.gz
bugzilla-d4bbccb5447134e7b09426e3199ac869e7c97563.tar.xz
Patch for bug 270589: Make t/008filter.t accept empty template directives; patch by Marc Schumann <wurblzap@gmail.com>, r=justdave, r=myk, a=justdave.
Diffstat (limited to 't/008filter.t')
-rw-r--r--t/008filter.t3
1 files changed, 3 insertions, 0 deletions
diff --git a/t/008filter.t b/t/008filter.t
index 531edf28e..bc8c6aa15 100644
--- a/t/008filter.t
+++ b/t/008filter.t
@@ -158,6 +158,9 @@ sub directive_ok {
$directive =~ s/^[+-]?\s*//;
$directive =~ s/\s*[+-]?$//;
+ # Empty directives are ok; they are usually line break helpers
+ return 1 if $directive eq '';
+
# Exclude those on the nofilter list
if (defined($safe{$file}{$directive})) {
$safe{$file}{$directive}++;