From 2897c0b83f5797e2717066155ee020f6776a07d6 Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Tue, 8 Jan 2019 16:24:00 -0500 Subject: [PATCH] fix: encode email before sending (#917) --- view/template/acquisition/auto-verify.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/view/template/acquisition/auto-verify.php b/view/template/acquisition/auto-verify.php index 29da31ad..201d1e9a 100644 --- a/view/template/acquisition/auto-verify.php +++ b/view/template/acquisition/auto-verify.php @@ -11,7 +11,8 @@ const ENDPOINT = 'https://api.lbry.io/user_email/confirm' var verifyUser = function(temporary_auth_token, email, verification_token, recaptcha) { - const url = `${ENDPOINT}?auth_token=${temporary_auth_token}&email=${email}&verification_token=${verification_token}&recaptcha=${recaptcha}`; + + const url = `${ENDPOINT}?auth_token=${temporary_auth_token}&email=${encodeURIComponent(email)}&verification_token=${verification_token}&recaptcha=${recaptcha}`; fetch(url) .then(response => response.json()) .then((response) => {