Skip to content

A platform for community discussion. Free, open, simple.

FIX: Do not interpret backreferences in email content

Kane Yorkec537e5ea203
diff --git a/app/helpers/email_helper.rb b/app/helpers/email_helper.rb
index 55b824ded30..f738ac49737 100644
--- a/app/helpers/email_helper.rb
+++ b/app/helpers/email_helper.rb
@@ -27,7 +27,7 @@ module EmailHelper
def email_html_template
EmailStyle.new.html
- .sub('%{email_content}', capture { yield })
+ .sub('%{email_content}') { capture { yield } }
.gsub('%{html_lang}', html_lang)
.html_safe
end