]> git.eshelyaron.com Git - emacs.git/commit
Add more protections to gnus-search query parsing
authorEric Abrahamsen <eric@ericabrahamsen.net>
Mon, 9 Nov 2020 00:32:10 +0000 (16:32 -0800)
committerEric Abrahamsen <eric@ericabrahamsen.net>
Mon, 9 Nov 2020 00:35:19 +0000 (16:35 -0800)
commit795b7da16b89f7e7e0392700fdca967637b0485e
tree78c3e2bbf5a82abe705313f2a6f4142f97210e6d
parent74de386a8a62f44520759320557a985dda923979
Add more protections to gnus-search query parsing

* lisp/gnus/gnus-group.el (gnus-group-make-search-group,
gnus-group-read-ephemeral-search-group): If the query is coming in via
the old 'nnir-query-spec key, we know not to parse it.
* lisp/gnus/gnus-search.el (gnus-search-make-query-string): Check if
the query was sent in as '(query "query"), and not '(query . "query).
(gnus-search-imap-search-keys): Add x-gm-raw to imap search keys.
(gnus-search-prepare-query): If we know this query should be raw,
don't even try parsing it, as it probably won't work.
lisp/gnus/gnus-group.el
lisp/gnus/gnus-search.el