From e9ecc2cf677ead4f785ed5621f6faacb5880fc87 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Mon, 17 Mar 2014 11:33:49 -0700 Subject: [PATCH] web: fix bug when reply to forum post while not logged in Need to use urlencode() when redirecting --- html/user/login_form.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/html/user/login_form.php b/html/user/login_form.php index e8eb0c50f0..6d8f342754 100644 --- a/html/user/login_form.php +++ b/html/user/login_form.php @@ -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);