mirror of
https://github.com/owncast/owncast.git
synced 2024-11-21 20:28:15 +03:00
Enforce https before indieauth parsing. For #2492
This commit is contained in:
parent
87eeeffa1c
commit
3894f410d2
1 changed files with 4 additions and 0 deletions
|
@ -74,6 +74,10 @@ func getAuthEndpointFromURL(urlstring string) (*url.URL, error) {
|
|||
return nil, errors.Wrap(err, "unable to parse URL")
|
||||
}
|
||||
|
||||
if htmlDocScrapeURL.Scheme != "https" {
|
||||
return nil, fmt.Errorf("url must be https")
|
||||
}
|
||||
|
||||
r, err := http.Get(htmlDocScrapeURL.String()) // nolint:gosec
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
|
Loading…
Reference in a new issue