From 315ec5f65cd6f18d313d06de96f610ffea92866a Mon Sep 17 00:00:00 2001 From: Eric Davis Date: Wed, 11 May 2011 15:39:07 -0700 Subject: [PATCH] HTML escape some user values --- app/views/my/_sidebar.rhtml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/my/_sidebar.rhtml b/app/views/my/_sidebar.rhtml index e7689c13..cc4a7850 100644 --- a/app/views/my/_sidebar.rhtml +++ b/app/views/my/_sidebar.rhtml @@ -1,6 +1,6 @@

<%=l(:label_my_account)%>

-

<%=l(:field_login)%>: <%= link_to @user.login, user_path(@user) %>
+

<%=l(:field_login)%>: <%= link_to(h(@user.login), user_path(@user) %>
<%=l(:field_created_on)%>: <%= format_time(@user.created_on) %>

@@ -19,7 +19,7 @@

<%= l(:label_api_access_key) %>

<%= link_to_function(l(:button_show), "$('api-access-key').toggle();")%> -
<%= @user.api_key %>
+
<%= h(@user.api_key) %>
<%= javascript_tag("$('api-access-key').hide();") %>