#28638: Allow `is_safe_url` to work without `allowed_hosts` or make the
parameter
mandatory
-------------------------------------+-------------------------------------
Reporter: kemar | Owner: Piotr
Type: | DomaĆski
Cleanup/optimization | Status: assigned
Component: Utilities | Version: 1.11
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 1
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Tim Graham):
I don't know that I would put much weight on that test case.
`is_safe_url()` is undocumented, so backwards compatibility isn't a higher
priority than making the change that makes the most sense. One of my
thoughts is that things in `django.utils` shouldn't rely on Django
settings, if possible. Like Jon, I lean toward making `allowed_hosts` a
required argument.
--
Ticket URL: <https://code.djangoproject.com/ticket/28638#comment:16>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/063.f5583657428b9625b42bb1c10438cb52%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.