Add noopener and/or noreferrer (#12202)

这个提交包含在:
BSKY
2019-10-24 22:44:42 +02:00
提交者 Eugen Rochko
父节点 237293fd8c
当前提交 fccf83e1f2
修改 27 个文件,包含 46 行新增45 行删除
+1 -1
查看文件
@@ -251,7 +251,7 @@ class Formatter
def link_to_url(entity, options = {})
url = Addressable::URI.parse(entity[:url])
html_attrs = { target: '_blank', rel: 'nofollow noopener' }
html_attrs = { target: '_blank', rel: 'nofollow noopener noreferrer' }
html_attrs[:rel] = "me #{html_attrs[:rel]}" if options[:me]
+1 -1
查看文件
@@ -45,7 +45,7 @@ class Sanitize
add_attributes: {
'a' => {
'rel' => 'nofollow noopener',
'rel' => 'nofollow noopener noreferrer',
'target' => '_blank',
},
},