Skip to content

Commit

Permalink
Since Rails 3.2.8 ERB::Util.html_escape now escapes single quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
juanignaciosl committed Jun 30, 2015
1 parent 41d0f9f commit 3862b40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/shared/_analytics.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
_gaq.push(['_setAllowLinker', true]);
<% if defined? custom_vars -%>
<% custom_vars.each do |var| %>
<%= "_gaq.push(['_setCustomVar', 1, '#{var[:title]}', '#{var[:value]}', #{var[:num]} ]);" %>
_gaq.push(['_setCustomVar', 1, '<%= var[:title] %>', '<%= var[:value] %>', <%= var[:num] %> ]);
<% end %>
<% end -%>
<% unless defined? page_owner -%>
Expand Down

2 comments on commit 3862b40

@juanignaciosl
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@xavijam 👀 , please

@xavijam
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Please sign in to comment.