Permalink
Browse files

Fixes 'attempted to output tainted string' error when rendering email…

… address for mailto
  • Loading branch information...
1 parent ec67cdc commit a3c0a7d80f75c5560a3fffa2c2f96831399ffd3c Chris Cummer committed with emk Dec 30, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/views/admin/sites/show.html.erb
@@ -11,7 +11,7 @@
<% form_for :site, :url => { :action => "update", :id => @site } do |f| -%>
<%= f.error_messages %>
<div id="general" class="setgroup">
- <h3><%=h @site.title %> <small>(<%= mail_to @site.email %>)</small></h3>
+ <h3><%=h @site.title %> <small>(<%= mail_to h( @site.email ) %>)</small></h3>
<dl class="setform">
<dt><label for="site_host">Host</label></dt>
<dd><%= f.text_field :host %></dd>

0 comments on commit a3c0a7d

Please sign in to comment.