This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new 2078cc1  Unnecessary
2078cc1 is described below

commit 2078cc17e180a4eb9106bf3e5ff705b04c4faf31
Author: Sebb <[email protected]>
AuthorDate: Sat Sep 26 16:48:41 2020 +0100

    Unnecessary
---
 www/board/agenda/views/actions/post-data.json.rb | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/www/board/agenda/views/actions/post-data.json.rb 
b/www/board/agenda/views/actions/post-data.json.rb
index 7a7236c..10e6bdd 100644
--- a/www/board/agenda/views/actions/post-data.json.rb
+++ b/www/board/agenda/views/actions/post-data.json.rb
@@ -15,7 +15,6 @@ if $0 == __FILE__
   require 'erubis'
   require 'ostruct'
   require 'pp'
-  $SAFE = 1
 
   ARGV.each do |arg|
     name, value = arg.split('=', 2)
@@ -74,7 +73,7 @@ when 'change-chair'
   @incoming_chair = ASF::Person[@chair]
   return unless @outgoing_chair and @incoming_chair
 
-  template = File.read('templates/change-chair.erb').untaint
+  template = File.read('templates/change-chair.erb')
   draft = Erubis::Eruby.new(template).result(binding)
 
   {draft: draft.reflow(0, 71)}
@@ -86,7 +85,7 @@ when 'establish'
   @chair = ASF::Person[@chair]
   @pmcname.gsub!(/\b\w/) {|c| c.upcase} unless @pmcname =~ /[A-Z]/
 
-  template = File.read('templates/establish.erb').untaint
+  template = File.read('templates/establish.erb')
   draft = Erubis::Eruby.new(template).result(binding)
   names = draft[/^(\s*\*.*\n)+/]
   if names
@@ -103,7 +102,7 @@ when 'terminate'
   @committee = ASF::Committee[@pmc]
   return unless @committee
 
-  template = File.read('templates/terminate.erb').untaint
+  template = File.read('templates/terminate.erb')
   draft = Erubis::Eruby.new(template).result(binding)
 
   {draft: draft.reflow(0, 71)}

Reply via email to