Commit a1e1e488 authored by Stratos Psomadakis's avatar Stratos Psomadakis
Browse files

Minor changes

parent cf75c66a
......@@ -45,9 +45,9 @@ def mail_admins_safe(subject, message, fail_silently=False, connection=None):
sending it
'''
# TODO
HIDDEN_ALL = settings.HIDDEN_SETTINGS + "|" + settings.HIDDEN_COOKIES
message = re.sub("((\S+)?(%s)(\S+)?(:|\=)( )?)('|\"?)\S+('|\"?)" \
% settings.HIDDEN_META, r"\1*******", message)
% HIDDEN_ALL, r"\1*******", message)
return mail.mail_admins_plain(subject, message, fail_silently, connection)
......
......@@ -17,6 +17,6 @@ SECRET_KEY = 'ly6)mw6a7x%n)-e#zzk4jo6f2=uqu!1o%)2-(7lo+f9yd^k^bg'
# sets this header is in use.
USE_X_FORWARDED_HOST = True
# Settings / meta / cookies that should be 'cleansed'
HIDDEN_SETTINGS = 'SECRET|PASSWORD|PROFANITIES_LIST|SIGNATURE|TOKEN|AMQP_HOSTS|PRIVATE_KEY|DB_CONNECTION'
HIDDEN_META = HIDDEN_SETTINGS + '|_pithos2_a|token|sessionid|shibstate|shibsession|CSRF_COOKIE'
# Settings / cookies that should be 'cleansed'
HIDDEN_SETTINGS = 'SECRET|PASSWORD|PROFANITIES_LIST|SIGNATURE|AMQP_HOSTS|PRIVATE_KEY|DB_CONNECTION'
HIDDEN_COOKIES = '_pithos2_a|token|sessionid|shibstate|shibsession|CSRF_COOKIE'
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment