#24834: Optional port in Host request header breaks get_current_site()
-------------------------------------+-------------------------------------
     Reporter:  ngnpope              |                    Owner:  ngnpope
         Type:  Bug                  |                   Status:  closed
    Component:  contrib.sites        |                  Version:  1.5
     Severity:  Normal               |               Resolution:  fixed
     Keywords:                       |             Triage Stage:  Ready for
                                     |  checkin
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Tim Graham <timograham@…>):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"b3d5dc6932bf896a909e9871d508654494b34563" b3d5dc69]:
 {{{
 #!CommitTicketReference repository=""
 revision="b3d5dc6932bf896a909e9871d508654494b34563"
 Fixed #24834 -- Fixed get_current_site() when Host header contains port.

 When the Host header contains a port, looking up the Site record fails
 as the host will never match the domain.
 }}}

--
Ticket URL: <https://code.djangoproject.com/ticket/24834#comment:13>
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/065.144d8e416434b6f705863ed60333a794%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to