#28638: Allow `is_safe_url` to work without `allowed_hosts` or make the
parameter
mandatory
-------------------------------------+-------------------------------------
Reporter: kemar | Owner: nobody
Type: | Status: new
Cleanup/optimization |
Component: Utilities | Version: 1.11
Severity: Normal | Resolution:
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Tim Graham):
* cc: Florian Apolloner (added)
* type: Uncategorized => Cleanup/optimization
Comment:
The `host` argument has been optional since the original commit that added
`is_safe_url()` (a2f2a399566dd68ce7e312fff5a5ba857066797d) -- now the
parameter is named `allowed_hosts`. Django always provides that argument
-- I'm not sure if there's a use case for not providing it. Did you have
something in mind, Florian?
--
Ticket URL: <https://code.djangoproject.com/ticket/28638#comment:2>
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.cf08d6e16adf167ac8fb4a170ac59da7%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.