Ticket #6508: add_domain.diff
File add_domain.diff, 580 bytes (added by , 17 years ago) |
---|
-
django/contrib/syndication/feeds.py
6 6 from django.conf import settings 7 7 8 8 def add_domain(domain, url): 9 if not url.startswith('http://'):9 if not (url.startswith('http://') or url.startswith('https://')): 10 10 # 'url' must already be ASCII and URL-quoted, so no need for encoding 11 11 # conversions here. 12 12 url = iri_to_uri(u'http://%s%s' % (domain, url))