aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Phillips <david@yeah.nah.nz>2018-12-08 23:22:55 +1300
committerDavid Phillips <david@yeah.nah.nz>2018-12-08 23:22:55 +1300
commite55495fcd2b696b3d805670344f97ec3a2da653a (patch)
tree6483aba09956b47a36becf28621b89b1f7a71473
parent2ad7b318a64161d80f8340c2e83c0ba3e1c52e43 (diff)
downloadidalius-e55495fcd2b696b3d805670344f97ec3a2da653a.tar.xz
Disallow general regex for ignores
-rwxr-xr-xidalius.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/idalius.pl b/idalius.pl
index 46e02c4..fef5b45 100755
--- a/idalius.pl
+++ b/idalius.pl
@@ -182,6 +182,7 @@ sub should_ignore {
my ($who) = @_;
for my $mask (@{$config->{_}->{ignore}}) {
my $expr = $mask;
+ $expr =~ s/([^[:alnum:]\*])/\\\1/g;
$expr =~ s/\*/.*/g;
if ($who =~ /^$expr$/) {
return 1;