title/heading & XSS fix for /edit
This commit is contained in:
parent
c6f844603d
commit
1cea0df3d8
2 changed files with 7 additions and 2 deletions
|
@ -1,4 +1,8 @@
|
|||
<h1><%= t('user_block.edit.title', :name => @user_block.user.display_name) %></h1>
|
||||
<% @title = t 'user_block.edit.title', :name => h(@user_block.user.display_name) %>
|
||||
<h1><%= t('user_block.edit.title',
|
||||
:name => link_to(
|
||||
h(@user_block.user.display_name),
|
||||
{:controller => 'user', :action => 'view', :display_name => @user_block.user.display_name})) %></h1>
|
||||
|
||||
<% form_for(@user_block) do |f| %>
|
||||
<%= f.error_messages %>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue