You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ponymail.apache.org by hu...@apache.org on 2021/10/16 23:49:09 UTC
[incubator-ponymail-foal] branch master updated: use match_phrase
for header matches, it's more accurate.
This is an automated email from the ASF dual-hosted git repository.
humbedooh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git
The following commit(s) were added to refs/heads/master by this push:
new 12dda94 use match_phrase for header matches, it's more accurate.
12dda94 is described below
commit 12dda940e1ea5f6188c1675393c1d5b1d063fa09
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Sun Oct 17 01:49:02 2021 +0200
use match_phrase for header matches, it's more accurate.
---
server/plugins/defuzzer.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/server/plugins/defuzzer.py b/server/plugins/defuzzer.py
index eaf3eee..09f3981 100644
--- a/server/plugins/defuzzer.py
+++ b/server/plugins/defuzzer.py
@@ -190,7 +190,7 @@ def defuzz(formdata: dict, nodate: bool = False, list_override: typing.Optional[
hname = "header_%s" % header
if hname in formdata:
hvalue = formdata[hname]
- must.append({"match": {header: hvalue}})
+ must.append({"match_phrase": {header: hvalue}})
thebool = {"must": must}