1
0
mirror of https://github.com/django/django.git synced 2025-10-25 14:46:09 +00:00

Fixed #26209 -- Masked sensitive settings in debug reports regardless of case.

This commit is contained in:
François Freitag
2016-02-11 13:23:18 +01:00
committed by Tim Graham
parent 926d41f0e7
commit 16a88b4429
2 changed files with 18 additions and 2 deletions

View File

@@ -19,7 +19,7 @@ from django.utils.translation import ugettext as _
# regardless of the project's TEMPLATES setting.
DEBUG_ENGINE = Engine(debug=True)
HIDDEN_SETTINGS = re.compile('API|TOKEN|KEY|SECRET|PASS|SIGNATURE')
HIDDEN_SETTINGS = re.compile('API|TOKEN|KEY|SECRET|PASS|SIGNATURE', flags=re.IGNORECASE)
CLEANSED_SUBSTITUTE = '********************'