[bugzilla-gnome-org-customizations/production] compare regexp lower case
- From: Olav Vitters <ovitters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [bugzilla-gnome-org-customizations/production] compare regexp lower case
- Date: Tue, 28 Mar 2017 17:52:13 +0000 (UTC)
commit 3d3d6e3db76e084f7d80724f6184f0b273c28248
Author: Olav Vitters <olav vitters nl>
Date: Tue Mar 28 19:51:50 2017 +0200
compare regexp lower case
extensions/AntiSpam/Extension.pm | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/extensions/AntiSpam/Extension.pm b/extensions/AntiSpam/Extension.pm
index 13dc78f..45c8364 100644
--- a/extensions/AntiSpam/Extension.pm
+++ b/extensions/AntiSpam/Extension.pm
@@ -49,7 +49,8 @@ sub bug_end_of_create_validators {
# Users with editbugs are excempt from AntiSpam protection
return if $user->in_group('editbugs');
- my $short_desc = $params->{short_desc};
+ # compare lower case
+ my $short_desc = lc($params->{short_desc});
my @spam_strings = grep(!/^\s*$/, split(/\n+/, Bugzilla->params->{"spam-strings"}));
my @spam_regexps = grep(!/^\s*$/, split(/\n+/, Bugzilla->params->{"spam-regexps"}));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]