You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ponymail.apache.org by se...@apache.org on 2021/12/27 16:29:15 UTC
[incubator-ponymail-foal] 01/02: Impossible check for '--word'
This is an automated email from the ASF dual-hosted git repository.
sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git
commit 5e96129a00068f68451fe961c07d3125a5df6e34
Author: Sebb <se...@apache.org>
AuthorDate: Mon Dec 27 16:28:47 2021 +0000
Impossible check for '--word'
This fixes #198
---
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 c8f64e2..65dd0a5 100644
--- a/server/plugins/defuzzer.py
+++ b/server/plugins/defuzzer.py
@@ -156,7 +156,7 @@ def defuzz(formdata: dict, nodate: bool = False, list_override: typing.Optional[
for bit in bits:
force_positive = False
# Translate -- into a positive '-', so you can find "-1" etc
- if bit[0:1] == "--":
+ if bit[0:2] == "--":
force_positive = True
bit = bit[1:]
# Negatives