From 62011a252fd8815d14d72a26f8ef9afb64c1fadb Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Thu, 25 Feb 2016 11:50:34 +0800 Subject: [PATCH] FIX: Follow redirects when downloading favicons. --- app/controllers/static_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/static_controller.rb b/app/controllers/static_controller.rb index fc2bbe09f4c..14564a38d21 100644 --- a/app/controllers/static_controller.rb +++ b/app/controllers/static_controller.rb @@ -101,7 +101,7 @@ class StaticController < ApplicationController data = DistributedMemoizer.memoize('favicon' + SiteSetting.favicon_url, 60*30) do begin - file = FileHelper.download(SiteSetting.favicon_url, 50.kilobytes, "favicon.png") + file = FileHelper.download(SiteSetting.favicon_url, 50.kilobytes, "favicon.png", true) data = file.read file.unlink data