]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
lib: event-filter-parser - Disallow non-equals comparators on non-fields
authorJosef 'Jeff' Sipek <jeff.sipek@open-xchange.com>
Thu, 24 Sep 2020 17:44:58 +0000 (13:44 -0400)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Fri, 23 Oct 2020 07:59:33 +0000 (07:59 +0000)
commit23645222de9d5f43d9bf9125e07c643dfc38213c
tree028385841fb3a3a14bfd16db0c72fe447d7d0bf6
parent81e2119bf75245a6ba4350d4454b3fcb2b0731eb
lib: event-filter-parser - Disallow non-equals comparators on non-fields

Non-equals comparisons (<, <=, >, and >=) aren't well defined for anything
other than fields.  Therefore, if we encounter one of these comparators with
an event name, category name, or source location, we should error out and
avoid confusing the user.
src/lib/event-filter-parser.y
src/lib/test-event-filter-parser.c