Django

Code

Ticket #6508: add_domain.diff

File add_domain.diff, 0.6 kB (added by Uninen, 1 year ago)

Fixed diff root

  • django/contrib/syndication/feeds.py

    old new  
    66from django.conf import settings 
    77 
    88def add_domain(domain, url): 
    9     if not url.startswith('http://'): 
     9    if not (url.startswith('http://') or url.startswith('https://')): 
    1010        # 'url' must already be ASCII and URL-quoted, so no need for encoding 
    1111        # conversions here. 
    1212        url = iri_to_uri(u'http://%s%s' % (domain, url))