Skip to content
Snippets Groups Projects
Commit 82a511ff authored by Yoan VALLET's avatar Yoan VALLET
Browse files

unescapte url for host in auth_old endpoint

parent 80e2b050
Branches
Tags
No related merge requests found
Pipeline #5395 failed
...@@ -107,7 +107,8 @@ func main() { ...@@ -107,7 +107,8 @@ func main() {
} }
state := string([]byte(pageState[0:splitIndex])) state := string([]byte(pageState[0:splitIndex]))
host := string([]byte(pageState[splitIndex+1:len(pageState)])) host := string([]byte(pageState[splitIndex+1:len(pageState)]))
host = url.QueryUnescape(host)
redir := host + "?code=" + pageCode + "&state="+ state +"&usage_point_id=" + pageUsage redir := host + "?code=" + pageCode + "&state="+ state +"&usage_point_id=" + pageUsage
fmt.Println(time.Now().Format("2006-01-02 15:04:05"), "- Redirect to -", redir) fmt.Println(time.Now().Format("2006-01-02 15:04:05"), "- Redirect to -", redir)
http.Redirect(w, r, redir, 302) http.Redirect(w, r, redir, 302)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment