summaryrefslogtreecommitdiff
path: root/django/http/multipartparser.py
Commit message (Collapse)AuthorAgeFilesLines
...
* Fixed #22680 -- I/O operation on closed file.Florian Apolloner2014-06-111-0/+10
| | | | | | | This patch is two-fold; first it ensure that Django does close everything in request.FILES at the end of the request and secondly the storage system should no longer close any files during save, it's up to the caller to handle that -- or let Django close the files at the end of the request.
* Fixed typo in multipartparser.pymbacho2014-05-161-1/+1
|
* Fixed many typos in comments and docstrings.Rodolfo Carvalho2014-03-031-3/+3
| | | | Thanks Piotr Kasprzyk for help with the patch.
* Fixed E127 pep8 warnings.Loic Bistuer2013-12-141-4/+3
|
* Fixed all E226 violationsAlex Gaynor2013-11-031-7/+7
|
* Fixed flake8 E251 violationsMilton Mazzarri2013-11-031-1/+1
|
* Fixed the remaining E302 violations int eh django packageAlex Gaynor2013-11-021-0/+9
|
* Fixed all E261 warningscoagulant2013-11-021-2/+2
|
* More attacking E302 violatorsAlex Gaynor2013-11-021-0/+3
|
* Fixed #21189: Cleaned up usage of bare except clauses.Baptiste Mispelon2013-10-051-4/+7
| | | | | Thanks to berkerpeksag for the report and to claudep for the review.
* Fixed #13721 -- Added UploadedFile.content_type_extra.Benjamin Kagia2013-07-111-7/+5
| | | | Thanks Waldemar Kornewald and mvschaik for work on the patch.
* Fixed #19866 -- Added security logger and return 400 for SuspiciousOperation.Preston Holmes2013-05-251-2/+2
| | | | | | | | | | SuspiciousOperations have been differentiated into subclasses, and are now logged to a 'django.security.*' logger. SuspiciousOperations that reach django.core.handlers.base.BaseHandler will now return a 400 instead of a 500. Thanks to tiwoc for the report, and Carl Meyer and Donald Stufft for review.
* Corrected documentation on the constructor arguments of MultiPartParserEric Urban2013-05-171-5/+6
|
* Replaced an antiquated pattern.Aymeric Augustin2013-05-171-1/+1
| | | | Thanks Lennart Regebro for pointing it out.
* Fixed #18003 -- Preserved tracebacks when re-raising errors.konarkmodi2013-03-191-1/+3
| | | | Thanks jrothenbuhler for draft patch, Konark Modi for updates.
* Kill mx.TextTools with fireMatt Robenolt2013-01-151-6/+1
|
* Fixed #19036 -- Fixed base64 uploads decodingClaude Paroz2012-11-171-0/+6
| | | | | Thanks anthony at adsorbtion.org for the report, and johannesl for bringing the patch up-to-date.
* Fixed #18963 -- Used a subclass-friendly patternAymeric Augustin2012-11-031-12/+4
| | | | for Python 2 object model compatibility methods.
* Fixed #19101 -- Decoding of non-ASCII POST data on Python 3.Aymeric Augustin2012-11-031-1/+1
| | | | Thanks Claude Paroz.
* Removed many uses of bare "except:", which were either going to a) silence ↵Alex Gaynor2012-09-071-3/+2
| | | | real issues, or b) were impossible to hit.
* [py3] Fixed file_uploads testsClaude Paroz2012-08-141-1/+3
|
* [py3] Fixed Python 3 compatibility of http handlingClaude Paroz2012-08-111-3/+5
| | | | | | * Using str() when Python 2 expects bytes and Python 3 Unicode * Fixed reraise-ing syntax * Fixed slicing of byte strings
* [py3] Renamed `next` to `__next__` in iterators.Aymeric Augustin2012-08-091-4/+12
| | | | See PEP 3114. `next` is retained as an alias for Python 2.
* [py3] Ported django.utils.encoding.Aymeric Augustin2012-08-071-5/+5
| | | | | | | | | | | * Renamed smart_unicode to smart_text (but kept the old name under Python 2 for backwards compatibility). * Renamed smart_str to smart_bytes. * Re-introduced smart_str as an alias for smart_text under Python 3 and smart_bytes under Python 2 (which is backwards compatible). Thus smart_str always returns a str objects. * Used the new smart_str in a few places where both Python 2 and 3 want a str.
* [py3] Replaced unicode/str by six.text_type/bytes.Aymeric Augustin2012-07-221-1/+2
|
* Fixed #18269 -- Applied unicode_literals for Python 3 compatibility.Claude Paroz2012-06-071-4/+10
| | | | | Thanks Vinay Sajip for the support of his django3 branch and Jannis Leidel for the review.
* Marked bytestrings with b prefix. Refs #18269Claude Paroz2012-05-191-19/+19
| | | | | This is a preparation for unicode literals general usage in Django (Python 3 compatibility).
* Replaced foo.next() by next(foo).Claude Paroz2012-05-101-3/+3
| | | | | This new syntax for next() has been introduced in Python 2.6 and is compatible with Python 3.
* Fixed #18013 -- Use the new 'as' syntax for exceptions.Claude Paroz2012-04-291-3/+3
| | | | | Thanks Clueless for the initial patch. Note that unittest has been purposely left out (external package only used by Python 2.6).
* Fixed #15785 -- Stopped HttpRequest.read() from reading beyond the end of a ↵Jannis Leidel2011-06-281-31/+5
| | | | | | wsgi.input stream and removed some redundant code in the multipartparser. Thanks, tomchristie, grahamd and isagalaev. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16479 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #16201 -- Ensure that requests with Content-Length=0 don't break the ↵Russell Keith-Magee2011-06-101-1/+6
| | | | | | multipart parser. Thanks to albsen for the report and patch git-svn-id: http://code.djangoproject.com/svn/django/trunk@16353 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #15496 -- Corrected handling of base64 file upload encoding. Thanks, ↵Jannis Leidel2011-05-071-0/+2
| | | | | | gene and Claude Paroz. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16176 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #10687: fixed request parsing when upload_handlers is empty. Thanks, ↵Jacob Kaplan-Moss2009-05-081-1/+2
| | | | | | Armin Ronacher. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10723 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #8643 -- Corrected docstrings of `MultiPartParser`, thanks KayEss.Gary Wilson Jr2009-03-301-3/+1
| | | | git-svn-id: http://code.djangoproject.com/svn/django/trunk@10213 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #7848 -- Removed a bunch of code that wasn't contributing to society. ↵Adrian Holovaty2008-07-221-13/+2
| | | | | | Thanks, julien git-svn-id: http://code.djangoproject.com/svn/django/trunk@8047 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #7635: do a better job checking for infinite loops in multi-part MIME ↵Jacob Kaplan-Moss2008-07-121-33/+24
| | | | | | parsing. Thanks, Mike Axiak. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7905 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #7651: uploading multiple files with the same name now work. Also, in ↵Jacob Kaplan-Moss2008-07-071-0/+1
| | | | | | order to test the problem the test client now handles uploading multiple files at once. Patch from Mike Axiak. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7858 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #2070: refactored Django's file upload capabilities.Jacob Kaplan-Moss2008-07-011-0/+658
A description of the new features can be found in the new [http://www.djangoproject.com/documentation/upload_handing/ upload handling documentation]; the executive summary is that Django will now happily handle uploads of large files without issues. This changes the representation of uploaded files from dictionaries to bona fide objects; see BackwardsIncompatibleChanges for details. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7814 bcc190cf-cafb-0310-a4f2-bffc1f526a37