Skip to content

Commit

Permalink
Make validate_redirect_url smarter. Fixes #261.
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Wright committed Jun 10, 2014
1 parent 9cadf85 commit 0facdaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flask_security/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0facdaa

Please sign in to comment.