Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Issue #18167: cgi.FieldStorage no more fails to handle multipart/form-data | Serhiy Storchaka | 2013-06-17 | 1 | -0/+9 |
| | | | | when \r\n appears at end of 65535 bytes without other newlines. | ||||
* | #16765: remove unused import. | Ezio Melotti | 2012-12-25 | 1 | -1/+0 |
| | |||||
* | Fix closes Issue12529 - cgi.parse_header failure on double quotes and | Senthil Kumaran | 2011-10-19 | 1 | -1/+1 |
| | | | | semicolons. Patch by Ben Darnell and Petri Lehtinen. | ||||
* | Merged revisions 83901 via svnmerge from | Senthil Kumaran | 2010-08-09 | 1 | -2/+2 |
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r83901 | senthil.kumaran | 2010-08-10 01:31:35 +0530 (Tue, 10 Aug 2010) | 3 lines Fix Issue7007 - Use percent-encoded consistently instead of URL Encoded variations. Changes in Modules. ........ | ||||
* | Fix and check cgi module deprecation warnings. Revert an unwanted rename in ↵ | Florent Xicluna | 2010-03-17 | 1 | -5/+5 |
| | | | | test_import. | ||||
* | revert r78842 cgi.py change | Benjamin Peterson | 2010-03-11 | 1 | -1/+1 |
| | |||||
* | use proper shebang lines | Benjamin Peterson | 2010-03-11 | 1 | -1/+1 |
| | |||||
* | #7092: silence more -3 and -Wd warnings | Ezio Melotti | 2010-01-31 | 1 | -1/+1 |
| | |||||
* | #4351: more appropriate DeprecationWarning stacklevels | Philip Jenvey | 2009-05-08 | 1 | -2/+2 |
| | |||||
* | Issue #1055234: cgi.parse_header(): Fixed parsing of header parameters to | Fred Drake | 2008-12-04 | 1 | -3/+15 |
| | | | | | support unusual filenames (such as those containing semi-colons) in Content-Disposition headers. | ||||
* | Issue 3801. Fixing a dumb error in the deprecated parse_qsl() | Facundo Batista | 2008-09-08 | 1 | -1/+1 |
| | | | | function. Tests added. | ||||
* | Issue 600362: Relocated parse_qs() and parse_qsl(), from the cgi module | Facundo Batista | 2008-09-03 | 1 | -67/+18 |
| | | | | | to the urlparse one. Added a PendingDeprecationWarning in the old module, it will be deprecated in the future. Docs and tests updated. | ||||
* | Move test.test_support.catch_warning() to the warnings module, rename it | Brett Cannon | 2008-09-02 | 1 | -6/+7 |
| | | | | | | | | | | | catch_warnings(), and clean up the API. While expanding the test suite, a bug was found where a warning about the 'line' argument to showwarning() was not letting functions with '*args' go without a warning. Closes issue 3602. Code review by Benjamin Peterson. | ||||
* | Silence DeprecationWarning raised by mimetools and rfc822 in cgi. | Brett Cannon | 2008-08-16 | 1 | -2/+9 |
| | |||||
* | Now a from submitted via POST that also has a query string | Facundo Batista | 2008-06-21 | 1 | -0/+11 |
| | | | | | | will contain both FieldStorage and MiniFieldStorage items. Fixes #1817. | ||||
* | Patch #1541463: optimize performance of cgi.FieldStorage operations. | Georg Brandl | 2007-09-20 | 1 | -10/+6 |
| | |||||
* | Bug #1457823: cgi.(Sv)FormContentDict's constructor now takes | Georg Brandl | 2006-09-30 | 1 | -2/+4 |
| | | | | keep_blank_values and strict_parsing keyword arguments. | ||||
* | Chris McDonough's patch to defend against certain DoS attacks on FieldStorage. | Guido van Rossum | 2006-08-10 | 1 | -5/+15 |
| | | | | SF bug #1112549. | ||||
* | Reverted revision 1.83, which introduced a bug and subtle incompatibility | Armin Rigo | 2005-09-19 | 1 | -8/+6 |
| | | | | issues. See bug #1112856. | ||||
* | Bring cgi.escape docstring slightly more in line with the library ref | Skip Montanaro | 2005-08-02 | 1 | -1/+3 |
| | | | | manual. Closes #1243553. | ||||
* | Patch #1079734: remove dependencies on (deprecated) rfc822 and mimetools | Johannes Gijsbers | 2005-01-08 | 1 | -7/+9 |
| | | | | modules, replacing with email. Thanks to Josh Hoyt for the patch! | ||||
* | Remove some lambdas. | Raymond Hettinger | 2004-12-31 | 1 | -3/+4 |
| | |||||
* | Use cStringIO where available. | Raymond Hettinger | 2004-12-31 | 1 | -1/+4 |
| | |||||
* | Let cgi.parse_header() properly unquote headers (patch #1008597). | Johannes Gijsbers | 2004-08-14 | 1 | -0/+1 |
| | |||||
* | Don't return spurious empty fields if 'keep_empty_values' is True. | Neil Schemenauer | 2004-07-19 | 1 | -0/+2 |
| | | | | Fixes SF bug #990307. | ||||
* | Change parse_qsl() to accept control-name's with no equal sign (e.g., "name") | Brett Cannon | 2004-03-21 | 1 | -1/+5 |
| | | | | when keep_blank_values is true. | ||||
* | Replace backticks with repr() or "%r" | Walter Dörwald | 2004-02-12 | 1 | -10/+9 |
| | | | | From SF patch #852334. | ||||
* | Get rid of many apply() calls. | Guido van Rossum | 2003-02-27 | 1 | -1/+1 |
| | |||||
* | Patch suggested by Hamish Lawson: add an __iter__() that returns | Guido van Rossum | 2002-09-11 | 1 | -0/+3 |
| | | | | iter(self.keys()). | ||||
* | Code modernization. Replace v=s[i]; del s[i] with single lookup v=s.pop(i) | Raymond Hettinger | 2002-06-30 | 1 | -2/+1 |
| | |||||
* | SF 563203. Replaced 'has_key()' with 'in'. | Raymond Hettinger | 2002-06-01 | 1 | -25/+33 |
| | |||||
* | Use is None rather than general boolean | Raymond Hettinger | 2002-05-31 | 1 | -1/+1 |
| | |||||
* | Convert a pile of obvious "yes/no" functions to return bool. | Tim Peters | 2002-04-04 | 1 | -2/+2 |
| | |||||
* | tighten up except - only ValueError can be raised in this situation | Skip Montanaro | 2002-03-23 | 1 | -1/+1 |
| | |||||
* | SF #515006, remove unnecessary import | Neal Norwitz | 2002-02-11 | 1 | -1/+0 |
| | |||||
* | "ib" should be "boundary"; reported by Neal Norwitz. | Fred Drake | 2001-10-13 | 1 | -1/+1 |
| | |||||
* | Class FieldStorage: add two new methods, getfirst() and getlist(), | Guido van Rossum | 2001-09-05 | 1 | -0/+22 |
| | | | | | | that provide a somewhat more uniform interface to getting values. This is from SF patch #453691. | ||||
* | Whitespace normalization. | Tim Peters | 2001-08-09 | 1 | -3/+3 |
| | |||||
* | Fix a denial-of-service attack, SF bug #443120. | Guido van Rossum | 2001-07-25 | 1 | -4/+14 |
| | | | | Code by Evan Simpson. | ||||
* | Solve SF bug #231249: cgi.py opens too many (temporary) files. | Guido van Rossum | 2001-06-29 | 1 | -4/+12 |
| | | | | | | | | | | | | | | | | | | | | | | class FieldStorage: this patch changes read_lines() and co. to use a StringIO() instead of a real file. The write() calls are redirected to a private method that replaces it with a real, external file only when it gets too big (> 1000 bytes). This avoids problems in forms using the multipart/form-data encoding with many fields. The original code created a temporary file for *every* field (not just for file upload fields), thereby sometimes exceeding the open file limit of some systems. Note that the simpler solution "use a real file only for file uploads" can't be used because the form field parser has no way to tell which fields correspond to file uploads. It's *possible* but extremely unlikely that this would break someone's code; they would have to be stepping way outside the documented interface for FieldStorage and use f.file.fileno(), or depend on overriding make_file() to return a file-like object with additional known properties. | ||||
* | Add a whole lot of stuff to __all__. | Guido van Rossum | 2001-03-19 | 1 | -3/+6 |
| | | | | | (Excluding the logging stuff, which doesn't lend itself to use via "from cgi import *" -- it manipulates globals.) | ||||
* | added missing element to __all__ | Skip Montanaro | 2001-02-28 | 1 | -1/+2 |
| | |||||
* | Added a comment explaining why this file must really have #! | Guido van Rossum | 2001-02-13 | 1 | -0/+9 |
| | | | | /usr/local/bin/python and not #! /usr/bin/env python. | ||||
* | String method conversion. | Eric S. Raymond | 2001-02-09 | 1 | -27/+26 |
| | |||||
* | added __all__ lists to a number of Python modules | Skip Montanaro | 2001-01-20 | 1 | -0/+2 |
| | | | | | | | | added test script and expected output file as well this closes patch 103297. __all__ attributes will be added to other modules without first submitting a patch, just adding the necessary line to the test script to verify more-or-less correct implementation. | ||||
* | Whitespace normalization. | Tim Peters | 2001-01-14 | 1 | -27/+27 |
| | |||||
* | Make Traceback header conform to new traceback ("innermost last" -> | Guido van Rossum | 2000-12-27 | 1 | -1/+1 |
| | | | | "most recent call last"). | ||||
* | This fixes several bug reports concering memory bloating during large | Barry Warsaw | 2000-11-06 | 1 | -5/+1 |
| | | | | | | | | | | | | | | | | | | | file uploads. In response to SF bugs 110674 and 119806, and discussions on python-dev, we are removing the self.lines attribute from the FieldStorage class. Specifically touched where methods __init__(), read_lines_to_eof(), and skip_lines(). No one can remember why self.lines was added. Technically, it's part of the public interface for the class, but it was never documented. It's possible clever or nosy code will break because of this, but it was decided to remove it and see who complains. This resolution also closes the second half of the cgi.py entry in PEP 42. The first half of that PEP concerns specifically binary file uploads, where there may be no end-of-line marker for a very long time. This patch does not address that issue. | ||||
* | Undo Ping's change. | Guido van Rossum | 2000-10-03 | 1 | -1/+1 |
| | | | | | | | | | CGI scripts should *not* use /usr/bin/env, since on systems that don't come standard with Python installed, Python isn't on the default $PATH. Too bad that this breaks on Linux, where Python is in /usr/bin which is on the default path -- the point is that you must manually edit your CGI scripts when you install them. | ||||
* | Change first line to #!/usr/bin/env python (really just to test check-in). | Ka-Ping Yee | 2000-10-03 | 1 | -1/+1 |
| |