Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed #31451 -- Made settings cleansing work with list and tuple settings. #12700

Merged
merged 1 commit into from Apr 15, 2020

Conversation

ichlaffterlalu
Copy link
Contributor

@ichlaffterlalu ichlaffterlalu commented Apr 11, 2020

Ticket link: https://code.djangoproject.com/ticket/31451.
This pull request makes django.views.debug.SafeExceptionReporterFilter.cleanse_setting recurses and iterates through built-in iterables: list and tuple, so that it will hide out sensitive informations for dictionaries inside the iterable.

@ichlaffterlalu
Copy link
Contributor Author

ichlaffterlalu commented Apr 11, 2020

Hmmm... I didn't change any docs but it failed.
EDIT: okay that issue is being fixed on #12698.
Anyway, I think the work is finished now so it's ready to be reviewed.

@felixxm felixxm self-assigned this Apr 15, 2020
@felixxm felixxm changed the title Fixed #31451 -- Recursed cleanse_setting on iterables. Fixed #31451 -- Made settings cleansing work with list and tuple settings. Apr 15, 2020
django/views/debug.py Outdated Show resolved Hide resolved
@felixxm
Copy link
Member

felixxm commented Apr 15, 2020

@ichlaffterlalu Thanks 👍 I rebased from master, squashed commits, and merged tests into a single one.

@felixxm felixxm merged commit 3e7c39f into django:master Apr 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants