Skip to content

Commit 7b37471

Browse files
committed
blocklist sensitive to spurious whitespace (sympa-community#1377)
1 parent b17e3bb commit 7b37471

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/lib/Sympa/Scenario.pm

+3-1
Original file line numberDiff line numberDiff line change
@@ -1445,7 +1445,9 @@ sub do_search {
14451445
}
14461446
while (my $pattern = <$ifh>) {
14471447
next if $pattern =~ /\A\s*\z/ or $pattern =~ /\A[#;]/;
1448-
chomp $pattern;
1448+
$pattern =~ s/\A\s+//;
1449+
$pattern =~ s/\s+\z//;
1450+
14491451
$pattern =~ s/([^\w\x80-\xFF])/\\$1/g;
14501452
$pattern =~ s/\\\*/.*/;
14511453
if ($sender =~ /^$pattern$/i) {

0 commit comments

Comments
 (0)