From 3024525c3b2ba8fb0f3f83223dd15fa721cca638 Mon Sep 17 00:00:00 2001 From: Christopher Speller Date: Tue, 31 Oct 2017 10:13:46 -0700 Subject: Fixing URL encoding of SAML email address when switching to SAML account (#7733) --- app/oauth.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/oauth.go') diff --git a/app/oauth.go b/app/oauth.go index 99794482a..0aba154fa 100644 --- a/app/oauth.go +++ b/app/oauth.go @@ -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 -- cgit v1.2.3-1-g7c22