We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6fd92bb + 7269758 commit 0f113caCopy full SHA for 0f113ca
config/initializers/sanitizer.rb
@@ -1 +1,10 @@
1
-Loofah::HTML5::WhiteList::ALLOWED_PROTOCOLS.merge(%w(message onenote))
+# From Loofah 2.3.0, we should use Loofah::HTML5::SafeList over
2
+# Loofah::HTML5::WhiteList
3
+safe_list =
4
+ if Loofah::HTML5.constants.include?(:SafeList)
5
+ Loofah::HTML5::SafeList
6
+ else
7
+ Loofah::HTML5::WhiteList
8
+ end
9
+
10
+safe_list::ALLOWED_PROTOCOLS.merge(%w(message onenote))
0 commit comments