fixed issue 1942, redirect in federated login security check
This commit is contained in:
@@ -1 +1 @@
|
||||
Version 2.9.5-trunk+timestamp.2014.06.13.11.45.40
|
||||
Version 2.9.5-trunk+timestamp.2014.06.13.22.23.53
|
||||
|
||||
+2
-1
@@ -2330,7 +2330,8 @@ class Auth(object):
|
||||
### use session for federated login
|
||||
snext = self.get_vars_next()
|
||||
if snext and self.settings.prevent_open_redirect_attacks:
|
||||
if not snext.split('/')[2] == request.env.http_host:
|
||||
items = snext.split('/')
|
||||
if len(items)<2 or not items[2] == request.env.http_host:
|
||||
snext = None
|
||||
|
||||
if snext:
|
||||
|
||||
Reference in New Issue
Block a user