From c5ac2a9e510fa9e53683e4f270c82e0296da8043 Mon Sep 17 00:00:00 2001 From: Not Zed Date: Wed, 10 Apr 2002 10:27:39 +0000 Subject: Check that there is a value to setup. Fixes #15470. 2002-04-10 Not Zed * filter-input.c (validate): Check that there is a value to setup. Fixes #15470. svn path=/trunk/; revision=16420 --- filter/ChangeLog | 3 +++ filter/filter-input.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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 + * 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; -- cgit v1.2.3