From fc3816ca1431f1df3dbed2b9d157562c2e8403c0 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 10 Jul 2022 22:52:24 +0100 Subject: [PATCH] Prepend dashes --- content.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/content.py b/content.py index 3755f020b..86cd82804 100644 --- a/content.py +++ b/content.py @@ -1479,6 +1479,9 @@ def extract_text_fields_in_post(post_bytes, boundary: str, debug: bool, """Returns a dictionary containing the text fields of a http form POST The boundary argument comes from the http header """ + if boundary == 'LYNX': + boundary == '--LYNX' + if not unit_test_data: msg_bytes = email.parser.BytesParser().parsebytes(post_bytes) message_fields = msg_bytes.get_payload(decode=True).decode('utf-8')