mirror of
https://github.com/grafana/grafana.git
synced 2024-11-26 19:00:54 -06:00
Use URLEncoding instead of StdEncoding to be sure state value will be corectly decoded (#10512)
This commit is contained in:
parent
baffdb156e
commit
dff66559e4
@ -35,7 +35,7 @@ var (
|
||||
func GenStateString() string {
|
||||
rnd := make([]byte, 32)
|
||||
rand.Read(rnd)
|
||||
return base64.StdEncoding.EncodeToString(rnd)
|
||||
return base64.URLEncoding.EncodeToString(rnd)
|
||||
}
|
||||
|
||||
func OAuthLogin(ctx *middleware.Context) {
|
||||
|
Loading…
Reference in New Issue
Block a user