mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 15:28:37 +08:00
FIX: add rel noopener and noreferrer in addition to nofollow
This commit is contained in:
@ -77,7 +77,7 @@ HTML
|
||||
end
|
||||
|
||||
it "should inject nofollow in all user provided links" do
|
||||
expect(PrettyText.cook('<a href="http://cnn.com">cnn</a>')).to match(/nofollow/)
|
||||
expect(PrettyText.cook('<a href="http://cnn.com">cnn</a>')).to match(/nofollow noopener noreferrer/)
|
||||
end
|
||||
|
||||
it "should not inject nofollow in all local links" do
|
||||
|
Reference in New Issue
Block a user