Ticket #7635: increase_limit.diff

File increase_limit.diff, 641 bytes (added by Michael Axiak, 16 years ago)

Increase counter from 500 to 64000.

  • django/http/multipartparser.py

     
    359359            self._largest_position = value
    360360        else:
    361361            self._modifications_since += 1
    362             if self._modifications_since > 500:
     362            if self._modifications_since > 64000:
    363363                raise SuspiciousOperation(
    364364                    "The multipart parser got stuck, which shouldn't happen with"
    365365                    " normal uploaded files. Check for malicious upload activity;"
Back to Top