From e404a9c1a9ac837d51bfec026a9e317c8f8b77d4 Mon Sep 17 00:00:00 2001 From: Coleman Date: Thu, 3 Jul 2008 01:31:37 -0500 Subject: [PATCH] no urls unless http --- app/views/pages/_comments.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/pages/_comments.html.erb b/app/views/pages/_comments.html.erb index ff43c22..4b72645 100644 --- a/app/views/pages/_comments.html.erb +++ b/app/views/pages/_comments.html.erb @@ -6,7 +6,7 @@ <% if allowed_to?(:delete_comment, comment) -%><% end -%>
- <%= position + 1 -%>. <%= (comment.url.blank?) ? h(comment.name) : "#{h(comment.name)}" %> + <%= position + 1 -%>. <%= (comment.url.blank? or comment.url !~ /^http/i) ? h(comment.name) : "#{h(comment.name)}" %> said <%= time_lost_in_words comment.page.created_at, comment.created_at %> later: