summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2019-10-02 14:19:21 (GMT)
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2019-10-02 14:19:52 (GMT)
commitc0ac563d407cf8e3334677675b6bd41b9f8a4a25 (patch)
tree1b4c91e67faa6372dd703ac87e6e19be196f5884
parentc56a999b922278b3399ee448087cad39da8be386 (diff)
downloadauthentic2-cut-master.zip
authentic2-cut-master.tar.gz
authentic2-cut-master.tar.bz2
middleware: split domain from portHEADv1.2.8master
-rw-r--r--src/authentic2_cut/middlewares.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/authentic2_cut/middlewares.py b/src/authentic2_cut/middlewares.py
index 3ee5713..d2444ca 100644
--- a/src/authentic2_cut/middlewares.py
+++ b/src/authentic2_cut/middlewares.py
@@ -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: