Skip to content

Commit

Permalink
ref C3S#5: html in encrypted mails only if html globally enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
timegrid committed Sep 11, 2015
1 parent 4f3b2d3 commit b28acb6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/encrypt_mails.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ def mail_with_relocation(headers={}, &block)
headers, recipients[:encrypted], encrypt = true, sign = true
) do |format|
format.text
format.html if Setting.plugin_openpgp['encrypted_html']
format.html if not Setting.plain_text_mail? and
Setting.plugin_openpgp['encrypted_html']
end
m.deliver

Expand Down

0 comments on commit b28acb6

Please sign in to comment.