Merge branch 'develop' of github.com:mattupstate/flask-security into develop

This commit is contained in:
Matt Wright
2014-10-13 13:25:08 -04:00
2 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -212,7 +212,7 @@ def validate_redirect_url(url):
return False
url_next = urlsplit(url)
url_base = urlsplit(request.host_url)
if url_next.netloc and url_next.netloc != url_base.netloc:
if (url_next.netloc or url_next.scheme) and url_next.netloc != url_base.netloc:
return False
return True