aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--filter/ChangeLog3
-rw-r--r--filter/filter-input.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/filter/ChangeLog b/filter/ChangeLog
index fb65edaf8a..ac3061ca73 100644
--- a/filter/ChangeLog
+++ b/filter/ChangeLog
@@ -7,6 +7,9 @@
2002-04-10 Not Zed <NotZed@Ximian.com>
+ * filter-input.c (validate): Check that there is a value to
+ setup. Fixes #15470.
+
* filtertypes.xml: Added closing ) for "not starts with" subject
rule.
Added closing ) for all the other broken rules too ...
diff --git a/filter/filter-input.c b/filter/filter-input.c
index 2252f95157..8343abbfa8 100644
--- a/filter/filter-input.c
+++ b/filter/filter-input.c
@@ -176,7 +176,7 @@ validate (FilterElement *fe)
FilterInput *fi = (FilterInput *)fe;
gboolean valid = TRUE;
- if (!strcmp (fi->type, "regex")) {
+ if (fi->values && !strcmp (fi->type, "regex")) {
regex_t regexpat; /* regex patern */
gint regerr;
char *text;