Skip to content

Commit

Permalink
Fixed #6508 -- Fixed add_domain function to also work with https fe…
Browse files Browse the repository at this point in the history
…ed URLs, thanks Uninen.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@7050 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
gdub committed Jan 31, 2008
1 parent 9fcaf35 commit d72ce4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django/contrib/syndication/feeds.py
Expand Up @@ -6,7 +6,7 @@
from django.conf import settings

def add_domain(domain, url):
if not url.startswith('http://'):
if not (url.startswith('http://') or url.startswith('https://')):
# 'url' must already be ASCII and URL-quoted, so no need for encoding
# conversions here.
url = iri_to_uri(u'http://%s%s' % (domain, url))
Expand Down

0 comments on commit d72ce4f

Please sign in to comment.