Wrapped next args with get_url()

This commit is contained in:
Josh Purvis
2012-11-24 17:31:05 -05:00
parent e83a970b3a
commit c8a24a8647
+2 -1
View File
@@ -76,7 +76,8 @@ def login():
if not request.json:
return redirect(get_post_login_redirect())
form.next.data = request.args.get('next') or request.form.get('next') or ''
form.next.data = get_url(request.args.get('next')) \
or get_url(request.form.get('next')) or ''
if request.json:
return _render_json(form, True)