diff --git a/django/utils/encoding.py b/django/utils/encoding.py index 2ab0db74320..33bb37b0ea8 100644 --- a/django/utils/encoding.py +++ b/django/utils/encoding.py @@ -98,5 +98,5 @@ def iri_to_uri(iri): # section 3.1 of RFC 3987. if iri is None: return iri - return urllib.quote(smart_str(iri), safe='/#%[]=:;$&()+,!?') + return urllib.quote(smart_str(iri), safe='/#%[]=:;$&()+,!?*')