Project

General

Profile

Actions

Patch #18911

closed

check Setting.protocol when determining gravatar protocol

Patch #18911: check Setting.protocol when determining gravatar protocol

Added by Maciej Liżewski almost 12 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Project settings
Target version:
-

Description

proposed change is in line 1235 of app/helpers/application_helper.rb

instead:
options.merge!({:ssl => (request && request.ssl?), :default => Setting.gravatar_default})

change to:
options.merge!({:ssl => ((Setting.protocol == 'https') || (request && request.ssl?)), :default => Setting.gravatar_default})

without that when Redmine is behind reverse proxy that do SSL gravatar links are generated as http (when everywhere else is https as expected after Setting.protocol is changed to 'https')


Related issues 2 (0 open — 2 closed)

Related to Redmine - Defect #9365: Gravatar don't utilize HTTPSClosedJean-Baptiste BarthActions
Related to Redmine - Defect #21855: Gravatar get images over http instead httpsClosedJean-Philippe LangActions

Updated by Toshi MARUYAMA almost 12 years ago Actions #1

  • Related to Defect #9365: Gravatar don't utilize HTTPS added

Updated by Toshi MARUYAMA almost 12 years ago Actions #2

  • Status changed from New to Needs feedback

Similar change was refused at #9365.

Updated by Maciej Liżewski almost 12 years ago Actions #3

OK... That is also acceptable solution.
I did not know about it (using http header) and I did not find it when I was looking for solution - maybe resolution of this issue could be only updating docs to point that out? (somewhere near the description of Settings protocol flag).

BTW - what is the reason for having this "protocol" setting? Does Redmine use it only when generating email messages?

Updated by Go MAEDA almost 11 years ago Actions #4

  • Related to Defect #21855: Gravatar get images over http instead https added

Updated by Go MAEDA over 10 years ago Actions #5

  • Status changed from Needs feedback to Closed

This issue have been resolved by #21855 (will be available as of Redmine 3.3.0).

Actions

Also available in: PDF Atom