Prechádzať zdrojové kódy

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 rokov pred
rodič
commit
9b579617f5
1 zmenil súbory, kde vykonal 2 pridanie a 2 odobranie
  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))