From d6d603d8cfd82d7a281757cceae08c8b7938d16a Mon Sep 17 00:00:00 2001
From: Ari Autio <ari.autio@iki.fi>
Date: Tue, 28 Feb 2017 23:45:37 +0200
Subject: PLT-3535: Handle plus (+) sign in emails by ensuring the email is uri
 encoded on login redirect (#5536)

---
 webapp/components/do_verify_email.jsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'webapp/components/do_verify_email.jsx')

diff --git a/webapp/components/do_verify_email.jsx b/webapp/components/do_verify_email.jsx
index 9b6a9ccad..54b8382b0 100644
--- a/webapp/components/do_verify_email.jsx
+++ b/webapp/components/do_verify_email.jsx
@@ -24,7 +24,7 @@ export default class DoVerifyEmail extends React.Component {
             this.props.location.query.uid,
             this.props.location.query.hid,
             () => {
-                browserHistory.push('/login?extra=verified&email=' + this.props.location.query.email);
+                browserHistory.push('/login?extra=verified&email=' + encodeURIComponent(this.props.location.query.email));
             },
             (err) => {
                 this.setState({verifyStatus: 'failure', serverError: err.message});
-- 
cgit v1.2.3-1-g7c22

