mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 06:49:14 +08:00
FIX: Some RSS feeds do unsafe redirects
There are people who have RSS feeds set up that do HTTPS -> HTTP redirects which throw errors. Since RSS feeds are all configured by admins I think it's OK if they allow an unsafe redirect as the content is public anyway. This will reduce many server side errors.
This commit is contained in:
parent
e7af8d2239
commit
40934e595a
|
@ -66,7 +66,7 @@ module Jobs
|
|||
private
|
||||
|
||||
def rss
|
||||
SimpleRSS.parse open(@feed_url)
|
||||
SimpleRSS.parse open(@feed_url, allow_redirections: :all)
|
||||
end
|
||||
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user