From 8ee5902da8c82f9deafe4dba8d9be8a6acf62a8f Mon Sep 17 00:00:00 2001 From: Toks Date: Fri, 27 Mar 2015 21:35:30 -0400 Subject: [PATCH] fix #2362 Rather than removing all css now it will remove only css not listed in the "relaxed" sanitize config. --- app/logical/d_text.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/logical/d_text.rb b/app/logical/d_text.rb index 29363af30..ff2e31586 100644 --- a/app/logical/d_text.rb +++ b/app/logical/d_text.rb @@ -321,7 +321,8 @@ class DText "a" => { "href" => ["http", "https", :relative] } - } + }, + :css => Sanitize::Config::RELAXED[:css] ) end end