#9064: Redirect is broken when HTTP_X_FORWARDED_HOST contains multiple hosts
---------------------------+------------------------------------------------
 Reporter:  Artur          |       Owner:  nobody    
   Status:  new            |   Milestone:            
Component:  Uncategorized  |     Version:  1.0       
 Keywords:                 |       Stage:  Unreviewed
Has_patch:  0              |  
---------------------------+------------------------------------------------
 HttpRequest.getHost uses HTTP_X_FORWARDED_HOST as a primary method of
 acquiring the host name of the server but does not take into account that
 it can be a list of multiple hosts separated by comma. Only the first host
 should be used if the header contains several.

 Attached a patch for separating at the first comma if multiple hosts are
 listed.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/9064>
Django <http://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 post to this group, send email to django-updates@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to