Fixing URL encoding of SAML email address when switching to SAML account (#7733)

Этот коммит содержится в:
Christopher Speller
2017-10-31 10:13:46 -07:00
коммит произвёл GitHub
родитель 06ec648cf3
Коммит 3024525c3b

Просмотреть файл

@@ -732,7 +732,7 @@ func (a *App) SwitchEmailToOAuth(w http.ResponseWriter, r *http.Request, email,
stateProps["email"] = email
if service == model.USER_AUTH_SERVICE_SAML {
return utils.GetSiteURL() + "/login/sso/saml?action=" + model.OAUTH_ACTION_EMAIL_TO_SSO + "&email=" + email, nil
return utils.GetSiteURL() + "/login/sso/saml?action=" + model.OAUTH_ACTION_EMAIL_TO_SSO + "&email=" + utils.UrlEncode(email), nil
} else {
if authUrl, err := a.GetAuthorizationCode(w, r, service, stateProps, ""); err != nil {
return "", err