fix escaping

This commit is contained in:
Albert Yi
2018-10-22 17:25:14 -07:00
parent 11e75aec2a
commit f4cafebd0f
2 changed files with 6 additions and 6 deletions

View File

@@ -81,9 +81,9 @@
<script> <script>
$(function() { $(function() {
window.Danbooru.mixpanelEvent("Post Search", { window.Danbooru.mixpanelEvent("Post Search", {
"tags": <%= params[:tags].to_json %>, "tags": <%= raw params[:tags].to_json %>,
"page": <%= params[:page].to_json %>, "page": <%= raw params[:page].to_json %>,
"referer": <%= request.referer.to_json %> "referer": <%= raw request.referer.to_json %>
}); });
}); });
</script> </script>

View File

@@ -200,9 +200,9 @@
"rating": '<%= @post.rating %>', "rating": '<%= @post.rating %>',
"size": <%= @post.file_size %>, "size": <%= @post.file_size %>,
"fav_count": <%= @post.fav_count %>, "fav_count": <%= @post.fav_count %>,
"created_at": <%= @post.created_at.strftime('%F %T').to_json %>, "created_at": <%= raw @post.created_at.strftime('%F %T').to_json %>,
"tags": <%= @post.presenter.humanized_essential_tag_string.to_json %>, "tags": <%= raw @post.presenter.humanized_essential_tag_string.to_json %>,
"referer": <%= request.referer.to_json %> "referer": <%= raw request.referer.to_json %>
}); });
}); });
</script> </script>