Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

Enforce https before indieauth parsing. For #2492

Gabe Kangas88ecf95ab95b
diff --git a/auth/indieauth/helpers.go b/auth/indieauth/helpers.go
index f777c87548..159c30a333 100644
--- a/auth/indieauth/helpers.go
+++ b/auth/indieauth/helpers.go
@@ -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