Ticket #20303: request.diff

File request.diff, 486 bytes (added by john_borwick@…, 12 years ago)

Simple patch to request.py. Probably didn't build this properly

  • django/http/request.

    old new  
    5555        if settings.USE_X_FORWARDED_HOST and (
    5656            'HTTP_X_FORWARDED_HOST' in self.META):
    5757            host = self.META['HTTP_X_FORWARDED_HOST']
     58            if host.find(',') >= 0:
     59                host = host.split(',')[0]
    5860        elif 'HTTP_HOST' in self.META:
    5961            host = self.META['HTTP_HOST']
    6062        else:
Back to Top