mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Skip upload if HTML cannot be parsed (#12971)
This commit is contained in:
@@ -54,6 +54,11 @@ RSpec.describe InlineUploads do
|
||||
MD
|
||||
end
|
||||
|
||||
it "should work with invalid img tags" do
|
||||
md = '<img data-id="<>">'
|
||||
expect(InlineUploads.process(md)).to eq(md)
|
||||
end
|
||||
|
||||
it "should not correct code blocks" do
|
||||
md = "`<a class=\"attachment\" href=\"#{upload2.url}\">In Code Block</a>`"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user