Skip to content

Commit

Permalink
Fix url check type. Refs #49
Browse files Browse the repository at this point in the history
  • Loading branch information
omab committed Oct 8, 2013
1 parent c2fceba commit d1d23e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion social/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def sanitize_redirect(host, redirect_to):
"""
# Quick sanity check.
if not redirect_to or \
not isinstance(redirect_to, six.string_types) and \
not isinstance(redirect_to, six.string_types) or \
getattr(redirect_to, 'decode', None) and \
not isinstance(redirect_to.decode(), six.string_types):
return None
Expand Down

0 comments on commit d1d23e7

Please sign in to comment.