Fix XSS in post thumbnail data attributes.

This commit is contained in:
evazion
2017-03-21 17:15:58 -05:00
parent 2aa3f9ceba
commit d1debecd0b

View File

@@ -88,8 +88,8 @@ class PostPresenter < Presenter
data-file-url="#{post.file_url}"
data-large-file-url="#{post.large_file_url}"
data-preview-file-url="#{post.preview_file_url}"
data-source="#{post.source}"
data-normalized-source="#{post.normalized_source}"
data-source="#{h(post.source}"
data-normalized-source="#{h(post.normalized_source)}"
}.html_safe
end