[#163] Add extra escape in mail_to's javascript. Rails CVE-2011-0446
This commit is contained in:
parent
2b6a982801
commit
151b4cd404
|
@ -7,7 +7,7 @@
|
|||
<div class="splitcontentleft">
|
||||
<ul>
|
||||
<% unless @user.pref.hide_mail %>
|
||||
<li><%=l(:field_mail)%>: <%= mail_to(h(@user.mail), nil, :encode => 'javascript') %></li>
|
||||
<li><%=l(:field_mail)%>: <%= mail_to(h(escape_javascript(@user.mail)), nil, :encode => 'javascript') %></li>
|
||||
<% end %>
|
||||
<% @user.visible_custom_field_values.each do |custom_value| %>
|
||||
<% if !custom_value.value.blank? %>
|
||||
|
|
Loading…
Reference in New Issue