middleware: split domain from port

This commit is contained in:
Benjamin Dauvergne 2019-10-02 16:19:21 +02:00
parent c56a999b92
commit c0ac563d40
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ class CUTMiddleware(object):
url = next_url or request.GET.get('redirect_uri')
netloc = urlparse.urlparse(url).netloc
if netloc:
domain = netloc.split(':')[-1]
domain = netloc.split(':')[0]
if hasattr(request, 'session'):
if not domain: