diff options
author | JoramWilander <jwawilander@gmail.com> | 2016-01-14 13:25:26 -0500 |
---|---|---|
committer | JoramWilander <jwawilander@gmail.com> | 2016-01-14 13:25:26 -0500 |
commit | f04097bbd77ec64d69a972f9bfae177ca994efd1 (patch) | |
tree | 3e291a57fd8ed15cd500d870b83f2e90807671c8 /web/react/components/user_settings/user_settings_security.jsx | |
parent | d36af55d57cbfa09c1381f6a0e957ec446b4ced3 (diff) | |
download | chat-f04097bbd77ec64d69a972f9bfae177ca994efd1.tar.gz chat-f04097bbd77ec64d69a972f9bfae177ca994efd1.tar.bz2 chat-f04097bbd77ec64d69a972f9bfae177ca994efd1.zip |
Encode url query properly for SSO switching
Diffstat (limited to 'web/react/components/user_settings/user_settings_security.jsx')
-rw-r--r-- | web/react/components/user_settings/user_settings_security.jsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/web/react/components/user_settings/user_settings_security.jsx b/web/react/components/user_settings/user_settings_security.jsx index d9c5f58a9..d1266dd3f 100644 --- a/web/react/components/user_settings/user_settings_security.jsx +++ b/web/react/components/user_settings/user_settings_security.jsx @@ -206,7 +206,7 @@ export default class SecurityTab extends React.Component { <div> <a className='btn btn-primary' - href={'/' + teamName + '/claim?email=' + user.email} + href={'/' + teamName + '/claim?email=' + encodeURIComponent(user.email)} > {'Switch to using email and password'} </a> @@ -221,7 +221,7 @@ export default class SecurityTab extends React.Component { <div> <a className='btn btn-primary' - href={'/' + teamName + '/claim?email=' + user.email + '&new_type=' + Constants.GITLAB_SERVICE} + href={'/' + teamName + '/claim?email=' + encodeURIComponent(user.email) + '&new_type=' + Constants.GITLAB_SERVICE} > {'Switch to using GitLab SSO'} </a> @@ -236,7 +236,7 @@ export default class SecurityTab extends React.Component { <div> <a className='btn btn-primary' - href={'/' + teamName + '/claim?email=' + user.email + '&new_type=' + Constants.GOOGLE_SERVICE} + href={'/' + teamName + '/claim?email=' + encodeURIComponent(user.email) + '&new_type=' + Constants.GOOGLE_SERVICE} > {'Switch to using Google SSO'} </a> |