web: fix bug when reply to forum post while not logged in

Need to use urlencode() when redirecting
This commit is contained in:
David Anderson 2014-03-17 11:33:49 -07:00
parent 79a9d2740a
commit e9ecc2cf67
1 changed files with 2 additions and 1 deletions

View File

@ -23,7 +23,8 @@ check_get_args(array("next_url"));
$next_url = sanitize_local_url(get_str('next_url', true));
redirect_to_secure_url("login_form.php?next_url=$next_url");
$u = "login_form.php?next_url=".urlencode($next_url);
redirect_to_secure_url($u);
$user = get_logged_in_user(false);