#24834: Optional port in Host request header breaks get_current_site() -------------------------------+-------------------- Reporter: ngnpope | Owner: nobody Type: Bug | Status: new Component: contrib.sites | Version: 1.5 Severity: Normal | Keywords: Triage Stage: Unreviewed | Has patch: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------+-------------------- When calling `django.contrib.sites.shortcuts.get_current_site()` and relying on `HttpRequest.get_host()` to determine the current site, the query can fail if the Host header contains a port. This bug has been present since 1.5 where `RequestSite` was introduced and also turns up in 1.8 with support for using the request in `SiteManager.get_current()`.
-- Ticket URL: <https://code.djangoproject.com/ticket/24834> 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 django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/050.cbd0b3a41c35a3413ad1b39ab6de0931%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.