mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 18:30:26 -06:00
Unsubscribe link needn't be sanitized
This commit is contained in:
parent
02279c41cb
commit
ccf5b1584d
@ -61,7 +61,7 @@ module Email
|
|||||||
return unless html_override = @opts[:html_override]
|
return unless html_override = @opts[:html_override]
|
||||||
|
|
||||||
if @opts[:add_unsubscribe_link]
|
if @opts[:add_unsubscribe_link]
|
||||||
unsubscribe_link = PrettyText.cook(I18n.t('unsubscribe_link', template_args)).html_safe
|
unsubscribe_link = PrettyText.cook(I18n.t('unsubscribe_link', template_args), sanitize: false).html_safe
|
||||||
html_override.gsub!("%{unsubscribe_link}", unsubscribe_link)
|
html_override.gsub!("%{unsubscribe_link}", unsubscribe_link)
|
||||||
else
|
else
|
||||||
html_override.gsub!("%{unsubscribe_link}", "")
|
html_override.gsub!("%{unsubscribe_link}", "")
|
||||||
|
Loading…
Reference in New Issue
Block a user