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