mirror of
https://github.com/django/django.git
synced 2025-11-25 21:22:14 +00:00
Fixed #23004 -- Added request.META filtering to SafeExceptionReporterFilter.
Co-authored-by: Ryan Castner <castner.rr@gmail.com>
This commit is contained in:
parent
581ba5a948
commit
e2d9d66a22
6 changed files with 40 additions and 7 deletions
|
|
@ -277,8 +277,9 @@ following attributes and methods:
|
|||
|
||||
.. versionadded:: 3.1
|
||||
|
||||
A compiled regular expression object used to match settings considered
|
||||
as sensitive. By default equivalent to::
|
||||
A compiled regular expression object used to match settings and
|
||||
``request.META`` values considered as sensitive. By default equivalent
|
||||
to::
|
||||
|
||||
import re
|
||||
|
||||
|
|
@ -289,8 +290,9 @@ following attributes and methods:
|
|||
Returns ``True`` to activate the filtering in
|
||||
:meth:`get_post_parameters` and :meth:`get_traceback_frame_variables`.
|
||||
By default the filter is active if :setting:`DEBUG` is ``False``. Note
|
||||
that sensitive settings are always filtered, as described in the
|
||||
:setting:`DEBUG` documentation.
|
||||
that sensitive ``request.META`` values are always filtered along with
|
||||
sensitive setting values, as described in the :setting:`DEBUG`
|
||||
documentation.
|
||||
|
||||
.. method:: get_post_parameters(request)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue