Ticket #17257: 17257.diff
File 17257.diff, 582 bytes (added by , 13 years ago) |
---|
-
django/contrib/syndication/views.py
diff --git a/django/contrib/syndication/views.py b/django/contrib/syndication/views.py index 2480ff6..5b3287c 100644
a b def add_domain(domain, url, secure=False): 16 16 elif not (url.startswith('http://') 17 17 or url.startswith('https://') 18 18 or url.startswith('mailto:')): 19 # 'url' must already be ASCII and URL-quoted, so no need for encoding20 # conversions here.21 19 url = iri_to_uri(u'%s://%s%s' % (protocol, domain, url)) 22 20 return url 23 21