mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	Fixed #6508 -- Fixed add_domain function to also work with https feed URLs, thanks Uninen.
				
					
				
			git-svn-id: http://code.djangoproject.com/svn/django/trunk@7050 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
		| @@ -6,7 +6,7 @@ from django.utils.encoding import smart_unicode, iri_to_uri | ||||
| 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)) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user