From ed51f34ebba202838fd0eb4534f7043176fa4590 Mon Sep 17 00:00:00 2001 From: Zach Prezkuta Date: Thu, 7 Jun 2012 09:51:25 -0600 Subject: [PATCH] strip comment text upon comment creation --- app/models/comment.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/comment.rb b/app/models/comment.rb index 747602ba7..0f3fec09a 100644 --- a/app/models/comment.rb +++ b/app/models/comment.rb @@ -81,7 +81,7 @@ class Comment < ActiveRecord::Base end def initialize(person, target, text) - @text = text + @text = text.strip # remove leading and trailing whitespace now, otherwise it can cause signature issues super(person, target) end