mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 02:40:53 -06:00
Use double quotes in image uploads instead of single quotes. Our sanitizer seems to
hate single quotes.
This commit is contained in:
parent
6043a370ad
commit
2ce69c73eb
@ -192,7 +192,7 @@ window.Discourse.ComposerView = window.Discourse.View.extend
|
||||
done: (e, data) =>
|
||||
@set('loadingImage', false)
|
||||
upload = data.result
|
||||
html = "<img src='#{upload.url}' width='#{upload.width}' height='#{upload.height}'>"
|
||||
html = "<img src=\"#{upload.url}\" width=\"#{upload.width}\" height=\"#{upload.height}\">"
|
||||
@addMarkdown(html)
|
||||
|
||||
fail: (e, data) =>
|
||||
|
Loading…
Reference in New Issue
Block a user