You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by se...@apache.org on 2020/06/26 12:25:22 UTC

[whimsy] branch master updated: Ensure spawn does not complain

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 a753fca  Ensure spawn does not complain
a753fca is described below

commit a753fca4d04c84a21f53b04831f8b26585b4f740
Author: Sebb <se...@apache.org>
AuthorDate: Fri Jun 26 13:25:13 2020 +0100

    Ensure spawn does not complain
---
 www/officers/coi.cgi | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/www/officers/coi.cgi b/www/officers/coi.cgi
index 066d2b9..0e315af 100755
--- a/www/officers/coi.cgi
+++ b/www/officers/coi.cgi
@@ -24,7 +24,7 @@ end
 IDS = (chairs.flatten + ASF::Service['board'].members.map(&:id)).uniq
 
 # Get the list of files in this year's directory
-signerfileslist, err = ASF::SVN.svn('list', COI_CURRENT_URL, {user: $USER, password: $PASSWORD})
+signerfileslist, err = ASF::SVN.svn('list', COI_CURRENT_URL, {user: $USER.dup.untaint, password: $PASSWORD.dup.untaint})
 raise RuntimeError.new(err) unless signerfileslist
 signerfiles = signerfileslist.split('\n')
 
@@ -68,7 +68,7 @@ def get_affirmed_template(user, password, name, timestamp)
        Date: __
        Metadata: _______________Whimsy www/officers/coi.cgi________________'
   template, err =
-    ASF::SVN.svn('cat', COI_CURRENT_TEMPLATE_URL, {user: $USER, password: $PASSWORD})
+    ASF::SVN.svn('cat', COI_CURRENT_TEMPLATE_URL, {user: $USER.dup.untaint, password: $PASSWORD.dup.untaint})
   raise RuntimeError.new("Failed to read current template.txt -- %s" % err) unless template
   centered_name = "#{name}".center(60, '_')
   centered_date ="#{timestamp}".center(61, '_')
@@ -162,7 +162,7 @@ def emit_post(_)
   _div.transcript do
     Dir.mktmpdir do |tmpdir|
       ASF::SVN.svn_!('checkout',[COI_CURRENT_URL, tmpdir.untaint], _,
-                    {args: '--quiet', user: $USER, password: $PASSWORD})
+                    {args: '--quiet', user: $USER.dup.untaint, password: $PASSWORD.dup.untaint})
       Dir.chdir(tmpdir) do
         # write affirmation form
         File.write(user_filename, affirmed)
@@ -173,7 +173,7 @@ def emit_post(_)
         # TODO enable commit of affirmation
 #        ASF::SVN.svn_!('commit',[user_filename], _,
 #         {msg: "Affirm Conflict of Interest Policy for #{USERNAME}",
-#           user: $USER, password: $PASSWORD})
+#           user: $USER.dup.untaint, password: $PASSWORD.dup.untaint})
       end
     end
     # Send email to $USER, secretary@