no urls unless http

master
Coleman 2008-07-03 01:31:37 -05:00
parent fe33cb11e8
commit e404a9c1a9
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@
<span style="float: right"><% if allowed_to?(:delete_comment, comment) -%><a href="<%= url(:delete_comment, comment) -%>" onclick="if(!confirm('Are you sure you want to delete this comment?')){return false;}" rel="nofollow"><img src="/images/edit-delete.png" /></a><% end -%></span>
<div class="author">
<cite><%= position + 1 -%>. <%= (comment.url.blank?) ? h(comment.name) : "<a href='#{h(comment.url)}'>#{h(comment.name)}</a>" %></cite>
<cite><%= position + 1 -%>. <%= (comment.url.blank? or comment.url !~ /^http/i) ? h(comment.name) : "<a href='#{h(comment.url)}'>#{h(comment.name)}</a>" %></cite>
<abbr title="<%= comment.created_at %>">said <%= time_lost_in_words comment.page.created_at, comment.created_at %> later:</abbr>
</div>
<div class="content">