Last active
April 23, 2016 20:11
-
-
Save raminfp/0ae2427643bd84fe5d5860d712f060e2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Problem Code Here : | |
redirect_to = request.GET.get('next') | |
return HttpResponseRedirect(redirect_to) | |
Resolve Bug : | |
redirect_to = request.GET.get('next') | |
if redirect_to: | |
redirect_to = redirect_to if is_safe_url(redirect_to, request.get_host()) else '/' | |
return HttpResponseRedirect(redirect_to) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Good :)