whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sam Ruby <ru...@apache.org>
Subject [whimsy.git] [1/1] Commit ba0d4da: substitute [project] values in subject too
Date Thu, 10 Mar 2016 16:48:23 GMT
Commit ba0d4da2357aa294451833b6397ec0242cd8ee66:
    substitute [project] values in subject too


Branch: refs/heads/master
Author: Sam Ruby <rubys@intertwingly.net>
Committer: Sam Ruby <rubys@intertwingly.net>
Pusher: rubys <rubys@apache.org>

------------------------------------------------------------
www/board/agenda/views/actions/send-reminders.json.rb        | + -
------------------------------------------------------------
2 changes: 1 additions, 1 deletions.
------------------------------------------------------------


diff --git a/www/board/agenda/views/actions/send-reminders.json.rb b/www/board/agenda/views/actions/send-reminders.json.rb
index dc5766a..f3f1570 100644
--- a/www/board/agenda/views/actions/send-reminders.json.rb
+++ b/www/board/agenda/views/actions/send-reminders.json.rb
@@ -8,7 +8,6 @@
 unsent = []
 
 # extract values for common fields
-subject = @subject.untaint
 from = @from
 unless from
   sender = ASF::Person.find(env.user)
@@ -43,6 +42,7 @@
 
   # substitute [project] values
   reminder.gsub! '[project]', item['title'].gsub(/\W/, '-')
+  subject = @subject.gsub('[project]', item['title']).untaint
 
   # construct email
   mail = Mail.new do

Mime
View raw message