We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7fdff74 + c92b8bc commit d62d549Copy full SHA for d62d549
1 file changed
src/Ui/UiRequest.py
@@ -231,8 +231,12 @@ def getContentType(self, file_name):
231
# Return: <dict> Posted variables
232
def getPosted(self):
233
if self.env['REQUEST_METHOD'] == "POST":
234
+ try:
235
+ content_length = int(self.env.get('CONTENT_LENGTH', 0))
236
+ except ValueError:
237
+ content_length = 0
238
return dict(urllib.parse.parse_qsl(
- self.env['wsgi.input'].readline().decode()
239
+ self.env['wsgi.input'].read(content_length).decode()
240
))
241
else:
242
return {}
0 commit comments