#NEWLINE# def redirect_to_next( request , default_url = hijack_settings . HIJACK_LOGIN_REDIRECT_URL ) : #NEWLINE# #INDENT# redirect_to = request . GET . get ( 'next' , '' ) #NEWLINE# if ( not is_safe_url ( redirect_to ) ) : #NEWLINE# #INDENT# redirect_to = default_url #NEWLINE# #UNINDENT# return HttpResponseRedirect ( resolve_url ( redirect_to ) )