mirror of
https://github.com/9001/copyparty.git
synced 2026-08-13 13:53:06 -06:00
multipart boundary max-len
This commit is contained in:
parent
398fcf1d18
commit
4003a47723
|
|
@ -2150,7 +2150,8 @@ class MultipartParser(object):
|
|||
boundary = get_boundary(self.headers)
|
||||
if boundary.startswith('"') and boundary.endswith('"'):
|
||||
boundary = boundary[1:-1] # dillo uses quotes
|
||||
self.log("boundary=%r" % (boundary,))
|
||||
if len(boundary) > 72: # rfc-2046 <=70
|
||||
raise Pebkac(400, "boundary 2big: %d" % (len(boundary),))
|
||||
|
||||
# spec says there might be junk before the first boundary,
|
||||
# can't have the leading \r\n if that's not the case
|
||||
|
|
|
|||
Loading…
Reference in a new issue