use h() to avoid XSS in usernames
This commit is contained in:
parent
e0ece00738
commit
78e0ec74f7
2 changed files with 2 additions and 2 deletions
|
@ -8,7 +8,7 @@
|
|||
<%= f.error_messages %>
|
||||
|
||||
<p>
|
||||
<%= f.label :reason, t('user_block.edit.reason', :name => @user_block.user.display_name) %><br />
|
||||
<%= f.label :reason, t('user_block.edit.reason', :name => h(@user_block.user.display_name)) %><br />
|
||||
<%= f.text_area :reason %>
|
||||
</p>
|
||||
<p>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<h1><%= t('user_block.new.title', :name => @this_user.display_name) %></h1>
|
||||
<h1><%= t('user_block.new.title', :name => h(@this_user.display_name)) %></h1>
|
||||
|
||||
<% form_for(@user_block) do |f| %>
|
||||
<%= f.error_messages %>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue