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 лет %!s(int64=9): %!d(string=назад)
Родитель
Сommit
9b579617f5
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      config/initializers/sanitizer.rb

+ 2 - 2
config/initializers/sanitizer.rb

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