summaryrefslogtreecommitdiff
path: root/Lib/cgi.py
Commit message (Collapse)AuthorAgeFilesLines
* Issue #27105: Add cgi.test() to __all__, based on Jacek Ko?odziej?s patchMartin Panter2016-06-061-1/+1
|
* Issue #27076: Doc, comment and tests spelling fixesMartin Panter2016-05-261-1/+1
| | | | Most fixes to Doc/ and Lib/ directories by Ville Skytt?.
* (Merge 3.4) cgi.FieldStorage.read_multi ignores Content-LengthVictor Stinner2015-08-181-0/+5
|\ | | | | | | | | | | Issue #24764: cgi.FieldStorage.read_multi() now ignores the Content-Length header in part headers. Patch written by Peter Landry and reviewed by Pierre Quentel.
| * cgi.FieldStorage.read_multi ignores Content-LengthVictor Stinner2015-08-181-0/+5
| | | | | | | | | | | | Issue #24764: cgi.FieldStorage.read_multi() now ignores the Content-Length header in part headers. Patch written by Peter Landry and reviewed by Pierre Quentel.
* | merge 3.4 (#23801)Benjamin Peterson2015-03-291-2/+7
|\ \ | |/
| * Closes #23801 - Ignore entire preamble to multipart in cgi.FieldStorageDonald Stufft2015-03-291-2/+7
| |
* | Issue #20289: cgi.FieldStorage() now supports the context management protocol.Berker Peksag2015-02-061-0/+6
|/
* remove unused argument (closes #21135)Benjamin Peterson2014-04-031-1/+1
|
* merge from 3.3Senthil Kumaran2014-01-111-4/+9
|\ | | | | | | | | | | Issue #19092 - Raise a correct exception when cgi.FieldStorage is given an invalid file-obj. Also use __bool__ to determine the bool of the FieldStorage object.
| * Closes #17335: remove no-op assignment.Georg Brandl2013-10-131-1/+0
| |
| * Issue #18394: Explicitly close the file object cgi.FieldStorageBrett Cannon2013-08-231-0/+6
| | | | | | | | | | | | | | | | caches. Eliminates the ResoureWarning raised during testing. Patch also independently written by Vajrasky Kok.
| * Merge #18013: Fix cgi.FieldStorage to parse the W3C sample form.Florent Xicluna2013-07-071-1/+1
| |\
| * \ Issue #18167: cgi.FieldStorage no more fails to handle multipart/form-dataSerhiy Storchaka2013-06-171-3/+3
| |\ \ | | | | | | | | | | | | when \r\n appears at end of 65535 bytes without other newlines.
| | * \ merge from 3.3Senthil Kumaran2013-01-231-3/+3
| | |\ \ | | | | | | | | | | | | | | | | | | | | Issue #12411: Fix to cgi.parse_multipart to correctly use bytes boundaries and bytes data. Patch by Jonas Wagner.
| | | * | Replace IOError with OSError (#16715)Andrew Svetlov2012-12-251-1/+1
| | | | |
| | | * | Use OESeeror instead of os.error (#16720)Andrew Svetlov2012-12-241-1/+1
| | | | | | | | | | | | | | | | | | | | Patch by Serhiy Storchaka.
| | | * | Issue #16706: get rid of os.errorAndrew Svetlov2012-12-181-1/+1
| | | | |
* | | | | Issue #19092 - Raise a correct exception when cgi.FieldStorage is given anSenthil Kumaran2014-01-111-2/+12
| |_|_|/ |/| | | | | | | | | | | | | | | invalid file-obj. Also use __bool__ to determine the bool of the FieldStorage object.
* | | | Issue #18013: Fix cgi.FieldStorage to parse the W3C sample form.Florent Xicluna2013-07-071-1/+1
|/ / /
* | | Issue #18167: cgi.FieldStorage no more fails to handle multipart/form-dataSerhiy Storchaka2013-06-171-0/+9
|/ / | | | | | | when \r\n appears at end of 65535 bytes without other newlines.
* | merge from 3.2Senthil Kumaran2013-01-231-9/+9
|\ \ | |/ |/| | | | | Issue #12411: Fix to cgi.parse_multipart to correctly use bytes boundaries and bytes data. Patch by Jonas Wagner.
| * Issue #12411: Fix to cgi.parse_multipart to correctly use bytes boundaries andSenthil Kumaran2013-01-231-9/+9
| | | | | | | | bytes data. Patch by Jonas Wagner.
* | Issue #13248: turn 3.2's PendingDeprecationWarning into 3.3's ↵Florent Xicluna2011-12-101-1/+1
| | | | | | | | DeprecationWarning (cgi, importlib, nntplib, smtpd).
* | default - Fix closes Issue12529 - cgi.parse_header failure on double quotes andSenthil Kumaran2011-10-201-1/+10
|\ \ | |/ |/| | | semicolons. Patch by Ben Darnell and Petri Lehtinen.
| * Add cgi.closelog() function to close the log fileVictor Stinner2011-07-141-1/+10
| |
* | 3.2 - Fix closes Issue12529 - cgi.parse_header failure on double quotes andSenthil Kumaran2011-10-201-1/+1
|/ | | | semicolons. Patch by Ben Darnell and Petri Lehtinen.
* cgi: use isinstance(x, list) instead of type(x) == type([])Victor Stinner2011-01-141-3/+3
|
* Issue #4953: cgi.FieldStorage and cgi.parse() parse the request as bytes, notVictor Stinner2011-01-141-63/+169
| | | | | as unicode, and accept binary files. Add encoding and errors attributes to cgi.FieldStorage.
* #2830: add html.escape() helper and move cgi.escape() uses in the standard ↵Georg Brandl2010-10-151-12/+13
| | | | library to it. It defaults to quote=True and also escapes single quotes, which makes casual use safer. The cgi.escape() interface is not touched, but emits a (silent) PendingDeprecationWarning.
* Fix Issue7007 - Use percent-encoded consistently instead of URL Encoded ↵Senthil Kumaran2010-08-091-2/+2
| | | | variations. Changes in Modules.
* Merged revisions 78844 via svnmerge fromBenjamin Peterson2010-03-111-1/+1
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r78844 | benjamin.peterson | 2010-03-11 16:03:45 -0600 (Thu, 11 Mar 2010) | 1 line revert r78842 cgi.py change ........
* Merged revisions 78841-78842 via svnmerge fromBenjamin Peterson2010-03-111-1/+1
| | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r78841 | benjamin.peterson | 2010-03-11 15:50:45 -0600 (Thu, 11 Mar 2010) | 1 line remove executable property from doc files ........ r78842 | benjamin.peterson | 2010-03-11 15:53:25 -0600 (Thu, 11 Mar 2010) | 1 line use proper shebang lines ........
* #4351: more appropriate DeprecationWarning stacklevelsPhilip Jenvey2009-05-081-2/+2
|
* Merged revisions 67528 via svnmerge fromFred Drake2008-12-041-3/+15
| | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r67528 | fred.drake | 2008-12-04 13:25:17 -0500 (Thu, 04 Dec 2008) | 4 lines Issue #1055234: cgi.parse_header(): Fixed parsing of header parameters to support unusual filenames (such as those containing semi-colons) in Content-Disposition headers. ........
* Added a warning filter to don't show the warning duringFacundo Batista2008-09-091-1/+1
| | | | the tests. Also fixed the warning message in cgi.py
* Issue 600362: Relocated parse_qs() and parse_qsl(), from the cgi moduleFacundo Batista2008-09-031-68/+17
| | | | | to the urlparse one. Added a DeprecationWarning in the old module, it will be deprecated in the future. Docs and tests updated.
* Merged revisions ↵Benjamin Peterson2008-07-021-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 64434-64435,64440-64443,64445,64447-64448,64450,64452,64455,64461,64464,64466,64468 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r64434 | andrew.kuchling | 2008-06-20 18:13:58 -0500 (Fri, 20 Jun 2008) | 1 line Remove request for e-mail; it's unlikely these classes will be saved ........ r64435 | andrew.kuchling | 2008-06-20 18:14:32 -0500 (Fri, 20 Jun 2008) | 1 line Grammar fixes ........ r64440 | andrew.kuchling | 2008-06-21 08:29:12 -0500 (Sat, 21 Jun 2008) | 1 line Docstring typo ........ r64441 | andrew.kuchling | 2008-06-21 08:47:20 -0500 (Sat, 21 Jun 2008) | 1 line Use repr() for bad input strings; this makes the empty string or binary characters more visible ........ r64442 | andrew.kuchling | 2008-06-21 08:48:38 -0500 (Sat, 21 Jun 2008) | 1 line Docstring correction ........ r64443 | georg.brandl | 2008-06-21 09:26:19 -0500 (Sat, 21 Jun 2008) | 2 lines Documentation fix. ........ r64445 | facundo.batista | 2008-06-21 12:30:06 -0500 (Sat, 21 Jun 2008) | 3 lines Reviewed and updated the documentation. Fixes #3017. ........ r64447 | facundo.batista | 2008-06-21 13:58:04 -0500 (Sat, 21 Jun 2008) | 6 lines Now a from submitted via POST that also has a query string will contain both FieldStorage and MiniFieldStorage items. Fixes #1817. ........ r64448 | facundo.batista | 2008-06-21 14:48:19 -0500 (Sat, 21 Jun 2008) | 5 lines In the deprecated functions I added an alert to review specially a section of the subprocess documentation that helps with the replacing of those functionss. ........ r64450 | georg.brandl | 2008-06-22 04:05:29 -0500 (Sun, 22 Jun 2008) | 2 lines Turn section references into proper cross-references. ........ r64452 | facundo.batista | 2008-06-22 08:36:20 -0500 (Sun, 22 Jun 2008) | 5 lines Issue #2722. Now the char buffer to support the path string has not fixed length, it mallocs memory if needed. As a result, we don't have a maximum for the getcwd() method. ........ r64455 | facundo.batista | 2008-06-22 10:27:10 -0500 (Sun, 22 Jun 2008) | 4 lines Issue 3164. Small fix to don't repeat a comparation without necessity. ........ r64461 | georg.brandl | 2008-06-22 13:11:52 -0500 (Sun, 22 Jun 2008) | 2 lines #3085: Fix syntax error. ........ r64464 | georg.brandl | 2008-06-22 13:31:54 -0500 (Sun, 22 Jun 2008) | 2 lines Expand docstrings of sqlite3 functions. ........ r64466 | georg.brandl | 2008-06-22 14:07:59 -0500 (Sun, 22 Jun 2008) | 2 lines Write out "phi" consistently. ........ r64468 | facundo.batista | 2008-06-22 14:35:24 -0500 (Sun, 22 Jun 2008) | 4 lines Just returning nothing instead of rising TestSkipped, because it makes the test fail in the trunk.loewis-sun buildbot. ........
* Make a new urllib package .Jeremy Hylton2008-06-181-3/+3
| | | | | | | | | | | | | It consists of code from urllib, urllib2, urlparse, and robotparser. The old modules have all been removed. The new package has five submodules: urllib.parse, urllib.request, urllib.response, urllib.error, and urllib.robotparser. The urllib.request.urlopen() function uses the url opener from urllib2. Note that the unittests have not been renamed for the beta, but they will be renamed in the future. Joint work with Senthil Kumaran.
* remove a mimetools importBenjamin Peterson2008-06-121-1/+0
|
* Patch for issue 2848, mostly by Humberto Diogenes, with a couple ofBarry Warsaw2008-06-121-2/+4
| | | | small fixes by Barry. This removes mimetools from the stdlib.
* Patch by Humberto Diogenes for issue 2849, removing rfc822 module fromBarry Warsaw2008-06-121-11/+14
| | | | | | | the standard library. There are still a few cases of it in Demo and Tools, but that's fine for now. These should eventually get cleaned up. mimetools still has an import of rfc822, but mimetools itself should go away.
* Remove old backwards-compatibility classes from the cgi module.Georg Brandl2008-05-111-123/+1
|
* Remove one use of UserDict.UserDictRaymond Hettinger2008-02-041-2/+11
|
* Merged revisions 58211-58220 via svnmerge fromThomas Wouters2007-09-201-7/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r58211 | facundo.batista | 2007-09-19 19:53:25 +0200 (Wed, 19 Sep 2007) | 4 lines Issue #1772851. Optimization of __hash__ to behave better for big big numbers. ........ r58216 | raymond.hettinger | 2007-09-20 05:03:43 +0200 (Thu, 20 Sep 2007) | 1 line Fit nits ........ r58217 | georg.brandl | 2007-09-20 10:44:59 +0200 (Thu, 20 Sep 2007) | 2 lines alternate -> alternative. ........ r58218 | georg.brandl | 2007-09-20 18:06:07 +0200 (Thu, 20 Sep 2007) | 2 lines Patch #1541463: optimize performance of cgi.FieldStorage operations. ........ r58219 | georg.brandl | 2007-09-20 18:45:27 +0200 (Thu, 20 Sep 2007) | 2 lines #1176: document that string methods don't take keyword args. ........ r58220 | thomas.wouters | 2007-09-20 19:35:10 +0200 (Thu, 20 Sep 2007) | 4 lines Try harder to stay within the 79-column limit. There's still two places that go (way) over, but those are harder to fix without suffering in readability. ........
* Raise statement normalization in Lib/.Collin Winter2007-08-301-12/+12
|
* My wish for TempFile is fulfilled.Guido van Rossum2007-08-281-1/+1
|
* Make test_cgi pass. I changed the internal file created by make_file()Guido van Rossum2007-08-281-11/+9
| | | | | | | | | to be a text file. (XXX It should use UTF-8 as the encoding.) I also removed the unised 'binary' argument from the make_file() signature. XXX I am under no illusion that this is now working; I're pretty sure it would be more principled if it always read binary data. But that's for someone who actually cares about this module.
* Merged revisions 56125-56153 via svnmerge fromGuido van Rossum2007-07-031-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/p3yk ........ r56127 | georg.brandl | 2007-06-30 09:32:49 +0200 (Sat, 30 Jun 2007) | 2 lines Fix a place where floor division would be in order. ........ r56135 | guido.van.rossum | 2007-07-01 06:13:54 +0200 (Sun, 01 Jul 2007) | 28 lines Make map() and filter() identical to itertools.imap() and .ifilter(), respectively. I fixed two bootstrap issues, due to the dynamic import of itertools: 1. Starting python requires that map() and filter() are not used until site.py has added build/lib.<arch> to sys.path. 2. Building python requires that setup.py and distutils and everything they use is free of map() and filter() calls. Beyond this, I only fixed the tests in test_builtin.py. Others, please help fixing the remaining tests that are now broken! The fixes are usually simple: a. map(None, X) -> list(X) b. map(F, X) -> list(map(F, X)) c. map(lambda x: F(x), X) -> [F(x) for x in X] d. filter(F, X) -> list(filter(F, X)) e. filter(lambda x: P(x), X) -> [x for x in X if P(x)] Someone, please also contribute a fixer for 2to3 to do this. It can leave map()/filter() calls alone that are already inside a list() or sorted() call or for-loop. Only in rare cases have I seen code that depends on map() of lists of different lengths going to the end of the longest, or on filter() of a string or tuple returning an object of the same type; these will need more thought to fix. ........ r56136 | guido.van.rossum | 2007-07-01 06:22:01 +0200 (Sun, 01 Jul 2007) | 3 lines Make it so that test_decimal fails instead of hangs, to help automated test runners. ........ r56139 | georg.brandl | 2007-07-01 18:20:58 +0200 (Sun, 01 Jul 2007) | 2 lines Fix a few test cases after the map->imap change. ........ r56142 | neal.norwitz | 2007-07-02 06:38:12 +0200 (Mon, 02 Jul 2007) | 1 line Get a bunch more tests passing after converting map/filter to return iterators. ........ r56147 | guido.van.rossum | 2007-07-02 15:32:02 +0200 (Mon, 02 Jul 2007) | 4 lines Fix the remaining failing unit tests (at least on OSX). Also tweaked urllib2 so it doesn't raise socket.gaierror when all network interfaces are turned off. ........
* Change some uses of cStringIO.StringIO to io.StringIO.Guido van Rossum2007-05-181-4/+1
| | | | This is undoubtedly insufficient and in some cases just as broken as before.
* Fix most trivially-findable print statements.Guido van Rossum2007-02-091-35/+35
| | | | | | | | | There's one major and one minor category still unfixed: doctests are the major category (and I hope to be able to augment the refactoring tool to refactor bona fide doctests soon); other code generating print statements in strings is the minor category. (Oh, and I don't know if the compiler package works.)