diff --git a/core/podcasts/podcasts.go b/core/podcasts/podcasts.go index 0782fcbc9..cec853d03 100644 --- a/core/podcasts/podcasts.go +++ b/core/podcasts/podcasts.go @@ -532,6 +532,9 @@ func (pw *progressWriter) Write(p []byte) (int, error) { } func fetchAndParse(rssURL string) (*rssFeed, error) { + if err := validateURL(rssURL); err != nil { + return nil, fmt.Errorf("invalid RSS feed URL: %w", err) + } httpClient := &http.Client{Timeout: 15 * time.Second} resp, err := httpClient.Get(rssURL) //nolint:gosec if err != nil {