Răsfoiți Sursa

Added style tag to the allowed tags so that e-mails sent with EmailAgent can have CSS. Without this, style was stripped and the css was just placed inside the body tag. (#1557)

ancientz 8 ani în urmă
părinte
comite
9b579617f5
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      config/initializers/sanitizer.rb

+ 2 - 2
config/initializers/sanitizer.rb

@@ -1,2 +1,2 @@
-ActionView::Base.sanitized_allowed_tags += Set.new(%w(table thead tbody tr th td))
-ActionView::Base.sanitized_allowed_attributes += Set.new(%w(border cellspacing cellpadding valign))
+ActionView::Base.sanitized_allowed_tags += Set.new(%w(style table thead tbody tr th td))
+ActionView::Base.sanitized_allowed_attributes += Set.new(%w(border cellspacing cellpadding valign))