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 88bdc66  No longer useful
88bdc66 is described below

commit 88bdc66961f25cd95d043be2d9f5b262ded9408c
Author: Sebb <[email protected]>
AuthorDate: Tue Sep 29 22:10:30 2020 +0100

    No longer useful
---
 tools/mirror_check.rb | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/tools/mirror_check.rb b/tools/mirror_check.rb
index 5153d94..bcf3820 100755
--- a/tools/mirror_check.rb
+++ b/tools/mirror_check.rb
@@ -44,8 +44,6 @@ TODO - any more checks?
 
 =end
 
-$SAFE = 1
-
 URLMATCH = %r!^https?://[^/]+/(\S+/)?$!i
 HTTPDIRS = %w(zzz/ zzz/mirror-tests/) # must exist
 HDRMATCH = %r!<h\d>Apache Software Foundation Distribution 
Meta-Directory</h\d>! # must be on the zzz index page
@@ -89,7 +87,6 @@ end
 
 # get an HTTP URL
 def getHTTPHdrs(url)
-  url.untaint
   uri = URI.parse(url)
   http = Net::HTTP.new(uri.host, uri.port)
   http.use_ssl = uri.scheme == 'https'
@@ -131,7 +128,6 @@ end
 
 # get an HTTP URL=> response
 def getHTTP(url)
-  url.untaint
   uri = URI.parse(url)
   http = Net::HTTP.new(uri.host, uri.port)
   http.use_ssl = uri.scheme == 'https'
@@ -373,7 +369,6 @@ def doPost(url)
 end
 
 if __FILE__ == $0
-  $SAFE = 0
   init
   url = ARGV[0] || "localhost" # easier to test in an IDE
   checkHTTP(url+"") # allow url to be untainted later

Reply via email to