Fix phising bug
This commit is contained in:
parent
1f52db67aa
commit
a5c3cb4b42
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ class Sanitize
|
|||
:relative
|
||||
end
|
||||
|
||||
if LINK_PROTOCOLS.include?(scheme) && href != text
|
||||
if LINK_PROTOCOLS.include?(scheme) && href != text && href != 'https://' + text && cls == ''
|
||||
current_node['class'] = cls + ' kmy-dangerous-link'
|
||||
current_node.before(Nokogiri::XML::Text.new('⚠', current_node.document))
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue