You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by ru...@apache.org on 2016/08/04 17:25:19 UTC

[whimsy] 02/02: cleanup

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

rubys pushed a commit to branch master
in repository https://git-dual.apache.org/repos/asf/whimsy.git

commit 396f735373d36fdab9845ec2c9c45ff6eb94fb46
Author: Sam Ruby <ru...@intertwingly.net>
AuthorDate: Thu Aug 4 13:25:01 2016 -0400

    cleanup
---
 www/officers/acreq.cgi | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/www/officers/acreq.cgi b/www/officers/acreq.cgi
index 9b9e02a..98d0809 100755
--- a/www/officers/acreq.cgi
+++ b/www/officers/acreq.cgi
@@ -287,10 +287,6 @@ _html do
           cc      cc_list
           subject "[FORM] Account Request - #{requestor}: #{@name}"
 
-          ENV['REMOTE_ADDR'] =~ /(\w[\w.-]+)/
-          ra = $1
-          ra.untaint
-
           body <<-EOF.gsub(/^ {12}/, '').gsub(/(Vote reference:)?\n\s+\n/, "\n\n")
             Prospective userid: #{@user}
             Full name: #{@name}
@@ -303,7 +299,7 @@ _html do
 
             -- 
             Submitted by https://#{ENV['HTTP_HOST']}#{ENV['REQUEST_URI'].split('?').first}
-            From #{`/usr/bin/host #{ra}`.chomp}
+            From #{`/usr/bin/host #{ENV['REMOTE_ADDR'].dup.untaint}`.chomp}
             Using #{ENV['HTTP_USER_AGENT']}
           EOF
         end

-- 
To stop receiving notification emails like this one, please contact
"commits@whimsical.apache.org" <co...@whimsical.apache.org>.