From 40934e595a246d2ff1d8aabfe9bb361dc74e897a Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Fri, 18 Sep 2015 13:25:09 -0400 Subject: [PATCH] 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. --- app/jobs/scheduled/poll_feed.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/jobs/scheduled/poll_feed.rb b/app/jobs/scheduled/poll_feed.rb index 920c2161a9..8c93910def 100644 --- a/app/jobs/scheduled/poll_feed.rb +++ b/app/jobs/scheduled/poll_feed.rb @@ -66,7 +66,7 @@ module Jobs private def rss - SimpleRSS.parse open(@feed_url) + SimpleRSS.parse open(@feed_url, allow_redirections: :all) end end