mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:43:33 +08:00
This reverts commit 0d9bc0aaa6dde5a49b9315124a6343a8ffb41a16.
This commit is contained in:
@ -279,7 +279,6 @@ describe Topic do
|
||||
let(:topic_image) { build_topic_with_title("Topic with <img src='something'> image in its title") }
|
||||
let(:topic_script) { build_topic_with_title("Topic with <script>alert('title')</script> script in its title") }
|
||||
let(:topic_emoji) { build_topic_with_title("I 💖 candy alot") }
|
||||
let(:topic_modifier_emoji) { build_topic_with_title("I 👨🌾 candy alot") }
|
||||
|
||||
it "escapes script contents" do
|
||||
expect(topic_script.fancy_title).to eq("Topic with <script>alert(‘title’)</script> script in its title")
|
||||
@ -289,10 +288,6 @@ describe Topic do
|
||||
expect(topic_emoji.fancy_title).to eq("I :sparkling_heart: candy alot")
|
||||
end
|
||||
|
||||
it "keeps combined emojis" do
|
||||
expect(topic_modifier_emoji.fancy_title).to eq("I :man_farmer: candy alot")
|
||||
end
|
||||
|
||||
it "escapes bold contents" do
|
||||
expect(topic_bold.fancy_title).to eq("Topic with <b>bold</b> text in its title")
|
||||
end
|
||||
|
Reference in New Issue
Block a user