From c0eedb0716d8555fe8ad5195195948483b11408d Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 3 Dec 2020 14:59:07 +0000 Subject: [PATCH] Ensure that text fields from POST are unquoted --- content.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/content.py b/content.py index efac10f97..9e83b354e 100644 --- a/content.py +++ b/content.py @@ -8,6 +8,7 @@ __status__ = "Production" import os import email.parser +import urllib.parse from shutil import copyfile from utils import getImageExtensions from utils import loadJson @@ -991,5 +992,5 @@ def extractTextFieldsInPOST(postBytes, boundary, debug: bool) -> {}: if line > 2: postValue += '\n' postValue += postLines[line] - fields[postKey] = postValue + fields[postKey] = urllib.parse.unquote_plus(postValue) return fields