Commits

Hynek Cernoch committed 3d6317b

Fixed SSLMiddleware with Unicode characters. Closes #955

Comments (0)

Files changed (1)

satchmo/apps/satchmo_store/shop/SSLMiddleware.py

 
 from django.conf import settings
 from django.http import HttpResponseRedirect, get_host
+from django.utils.encoding import iri_to_uri
 from satchmo_utils import request_is_secure
 
 HTTPS_PATHS = getattr(settings, "HTTPS_PATHS", [])
         if secure and SSLPORT:
             host = "%s:%s" % (host, SSLPORT)
             
-        newurl = "%s%s" % (host, request.get_full_path())
+        newurl = "%s%s" % (host, iri_to_uri(request.get_full_path()))
 
         return HttpResponseRedirect(newurl)