better next validation, thanks Andre Kablu
This commit is contained in:
@@ -1 +1 @@
|
|||||||
Version 2.6.0-development+timestamp.2013.07.23.08.39.39
|
Version 2.6.0-development+timestamp.2013.07.23.11.07.29
|
||||||
|
|||||||
+9
-4
@@ -2048,10 +2048,15 @@ class Auth(object):
|
|||||||
if next is DEFAULT:
|
if next is DEFAULT:
|
||||||
# important for security
|
# important for security
|
||||||
next = self.settings.login_next
|
next = self.settings.login_next
|
||||||
if self.next:
|
user_next = self.next
|
||||||
host = self.next.split('//',1)[-1].split('/')[0]
|
if user_next:
|
||||||
if host in self.settings.cas_domains:
|
external = user_next.split('://')
|
||||||
next = self.next
|
if external[0].lower() in ['http', 'https', 'ftp']:
|
||||||
|
host_next = user_next.split('//', 1)[-1].split('/')[0]
|
||||||
|
if host_next in self.settings.cas_domains:
|
||||||
|
next = user_next
|
||||||
|
else:
|
||||||
|
next = user_next
|
||||||
if onvalidation is DEFAULT:
|
if onvalidation is DEFAULT:
|
||||||
onvalidation = self.settings.login_onvalidation
|
onvalidation = self.settings.login_onvalidation
|
||||||
if onaccept is DEFAULT:
|
if onaccept is DEFAULT:
|
||||||
|
|||||||
Reference in New Issue
Block a user