Ticket #17257: 17257.diff

File 17257.diff, 582 bytes (added by krzysiumed, 3 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): 
    1616    elif not (url.startswith('http://')
    1717            or url.startswith('https://')
    1818            or url.startswith('mailto:')):
    19         # 'url' must already be ASCII and URL-quoted, so no need for encoding
    20         # conversions here.
    2119        url = iri_to_uri(u'%s://%s%s' % (protocol, domain, url))
    2220    return url
    2321
Back to Top