Skip to content
This repository has been archived by the owner on Jan 25, 2022. It is now read-only.

Commit

Permalink
ウォール: JavaScriptインジェクション対策
Browse files Browse the repository at this point in the history
  • Loading branch information
YOSHIDA Hiroki committed Dec 6, 2013
1 parent 1f8b23d commit 0d94841
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/helpers/application_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def like_count(clip)
end

def comment_text_to(comment)
raw comment.body
h comment.body
end

def nostyle_like
Expand Down Expand Up @@ -64,7 +64,7 @@ def comment_to(comment)
def uncomment_to(comment)
options = { remote: true, title: 'コメントを取り消す', class: 'remove' }
remove_link = link_to(icon_remove + nostyle_remove, uncomment_clip_path(id: comment.clip_id, comment_id: comment.id), options)
comment_text_to(comment) + remove_link
raw comment_text_to(comment) + remove_link
end

def follow_to(followable, options={})
Expand Down

0 comments on commit 0d94841

Please sign in to comment.