Commit 0facdaac authored by Matt Wright's avatar Matt Wright
Browse files

Make `validate_redirect_url` smarter. Fixes #261.

parent 9cadf855
......@@ -196,7 +196,7 @@ def url_for_security(endpoint, **values):
def validate_redirect_url(url):
if url is None:
if url is None or url.strip() == '':
return False
url_next = urlsplit(url)
url_base = urlsplit(request.host_url)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment