-
-
Notifications
You must be signed in to change notification settings - Fork 30.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
maximum length not enforced in cgi.parse() #42628
Comments
I have a simple form in HTML to upload a file: <form action="http://foo/cgi-bin/test.py" I use this to post to a CGI python script that looks import cgi
import cgitb; cgitb.enable()
cgi.maxlen = 50 print "Content-type: text/plain" q = cgi.parse()
print q I was expecting that cgi.pm would then throw an form = cgi.FieldStorage()
print form The issue is that in parse_multipart() in cgi.pm, if |
Andrew could you please provide a patch. |
No reply to msg109880. |
Let's close this old issue, the cgi module is deprecated in 3.11 and set for removal in 3.13. See PEP 594 – Removing dead batteries from the standard library, #91217 and #32410. There's a fork at https://pypi.org/project/legacy-cgi/. |
Cc. @adr26 |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: