skymarshal: use escaped path for redirect URI

Signed-off-by: Rui Yang <ryang@pivotal.io>
This commit is contained in:
Rui Yang 2020-03-20 12:32:09 -04:00
parent 3e7db0548b
commit d058b7cca6
1 changed files with 1 additions and 1 deletions

View File

@ -266,7 +266,7 @@ func (s *SkyServer) Redirect(w http.ResponseWriter, r *http.Request, token *oaut
params := redirectURL.Query()
params.Set("csrf_token", csrfToken)
http.Redirect(w, r, redirectURL.Path+"?"+params.Encode(), http.StatusTemporaryRedirect)
http.Redirect(w, r, redirectURL.EscapedPath()+"?"+params.Encode(), http.StatusTemporaryRedirect)
}
func (s *SkyServer) Token(w http.ResponseWriter, r *http.Request) {