Ticket #17460: django-17460-hidden_settings.patch

File django-17460-hidden_settings.patch, 509 bytes (added by Bas Peschier, 13 years ago)
  • django/views/debug.py

    diff -r 5cd5507b3508 django/views/debug.py
    a b  
    1414from django.utils.importlib import import_module
    1515from django.utils.encoding import smart_unicode, smart_str
    1616
    17 HIDDEN_SETTINGS = re.compile('SECRET|PASSWORD|PROFANITIES_LIST|SIGNATURE')
     17HIDDEN_SETTINGS = re.compile('TOKEN|PASS|KEY|SECRET|PASSWORD|PROFANITIES_LIST|SIGNATURE')
    1818
    1919CLEANSED_SUBSTITUTE = u'********************'
    2020
Back to Top