Skip to content

Commit

Permalink
Merge branch 'pr/flexponsive/481'
Browse files Browse the repository at this point in the history
  • Loading branch information
bnfinet committed Aug 12, 2022
2 parents 8eae4e5 + 0ea205b commit 6f0c8d8
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions handlers/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,12 +154,17 @@ func normalizeLoginURLParam(loginURL *url.URL) (*url.URL, []string, error) {
// Still looking for url param
if paramKey == "url" {
// Found it
parsed, e := url.Parse(loginURL.Query().Get("url"))
parsed, e := url.ParseQuery(param)

if e != nil {
return nil, []string{}, e // failure to parse url param
}

urlParam = parsed
urlParam, e = url.Parse(parsed.Get("url"))

if e != nil {
return nil, []string{}, e // failure to parse url param
}
} else if !isVouchParam {
// Non-vouch param before url param is a stray param
log.Infof("Stray param in login request (%s)", paramKey)
Expand Down

0 comments on commit 6f0c8d8

Please sign in to comment.