[Xfce4-commits] <moka:master> Dup the string.

Nick Schermer noreply at xfce.org
Sun Nov 20 16:16:01 CET 2011


Updating branch refs/heads/master
         to ff2cc01d2b3c09c4137155423002f9e2451e2976 (commit)
       from 3b496f06f1858b587ddad3902558c2683c804696 (commit)

commit ff2cc01d2b3c09c4137155423002f9e2451e2976
Author: Nick Schermer <nick at xfce.org>
Date:   Sun Nov 20 16:15:17 2011 +0100

    Dup the string.

 lib/controllers/maintainers.rb |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/lib/controllers/maintainers.rb b/lib/controllers/maintainers.rb
index b3ec81d..289cfb0 100755
--- a/lib/controllers/maintainers.rb
+++ b/lib/controllers/maintainers.rb
@@ -19,8 +19,7 @@ module Moka
             for maintainer in Maintainer.all(:active => true)
               next if maintainer.email.empty?
 
-              body = params[:body]
-              body.gsub!('<realname>', maintainer.realname)
+              body = params[:body].gsub('<realname>', maintainer.realname)
               body.gsub!('<username>', maintainer.username)
 
               Pony.mail :to => maintainer.email,


More information about the Xfce4-commits mailing list