~ubuntu-branches/debian/sid/python-django/sid

« back to all changes in this revision

Viewing changes to docs/howto/error-reporting.txt

  • Committer: Package Import Robot
  • Author(s): Luke Faraone
  • Date: 2014-04-21 16:47:14 UTC
  • mfrom: (1.3.14)
  • Revision ID: package-import@ubuntu.com-20140421164714-3mlvyr7y1ssdo9e6
Tags: 1.6.3-1
* New upstream security release.
  - Unexpected code execution using ``reverse()``
  - CVE-2014-0472
  - Caching of anonymous pages could reveal CSRF token
  - CVE-2014-0473
  - MySQL typecasting could result in unexpected matches
  - CVE-2014-0474
* Drop patches 07_translation_encoding_fix and ticket21869.diff; merged
  upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
250
250
 
251
251
.. class:: SafeExceptionReporterFilter
252
252
 
253
 
.. method:: SafeExceptionReporterFilter.is_active(self, request)
 
253
.. method:: SafeExceptionReporterFilter.is_active(request)
254
254
 
255
255
    Returns ``True`` to activate the filtering operated in the other methods.
256
256
    By default the filter is active if :setting:`DEBUG` is ``False``.
257
257
 
258
 
.. method:: SafeExceptionReporterFilter.get_request_repr(self, request)
 
258
.. method:: SafeExceptionReporterFilter.get_request_repr(request)
259
259
 
260
260
    Returns the representation string of the request object, that is, the
261
261
    value that would be returned by ``repr(request)``, except it uses the
262
262
    filtered dictionary of POST parameters as determined by
263
263
    :meth:`SafeExceptionReporterFilter.get_post_parameters`.
264
264
 
265
 
.. method:: SafeExceptionReporterFilter.get_post_parameters(self, request)
 
265
.. method:: SafeExceptionReporterFilter.get_post_parameters(request)
266
266
 
267
267
    Returns the filtered dictionary of POST parameters. By default it replaces
268
268
    the values of sensitive parameters with stars (`**********`).
269
269
 
270
 
.. method:: SafeExceptionReporterFilter.get_traceback_frame_variables(self, request, tb_frame)
 
270
.. method:: SafeExceptionReporterFilter.get_traceback_frame_variables(request, tb_frame)
271
271
 
272
272
    Returns the filtered dictionary of local variables for the given traceback
273
273
    frame. By default it replaces the values of sensitive variables with stars