mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-30 05:48:50 +01:00
Use Loofah::HTML5::SafeList where possible
This commit is contained in:
parent
6fcf7e6d46
commit
726975863b
1 changed files with 10 additions and 1 deletions
|
|
@ -1 +1,10 @@
|
|||
Loofah::HTML5::WhiteList::ALLOWED_PROTOCOLS.merge(%w(message onenote))
|
||||
# From Loofah 2.3.0, we should use Loofah::HTML5::SafeList over
|
||||
# Loofah::HTML5::WhiteList
|
||||
safe_list =
|
||||
if Loofah::HTML5.constants.include?(:SafeList)
|
||||
Loofah::HTML5::SafeList
|
||||
else
|
||||
Loofah::HTML5::WhiteList
|
||||
end
|
||||
|
||||
safe_list::ALLOWED_PROTOCOLS.merge(%w(message onenote))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue