Use double quotes in image uploads instead of single quotes. Our sanitizer seems to

hate single quotes.
This commit is contained in:
Robin Ward 2013-02-06 14:27:11 -05:00
parent 6043a370ad
commit 2ce69c73eb

View File

@ -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) =>