misc/plugin/ping.rb in tdiary-5.0.7 vs misc/plugin/ping.rb in tdiary-5.0.8
- old
+ new
@@ -34,10 +34,10 @@
require 'net/http'
require 'timeout'
threads = []
list.each do |url|
- u = URI::parse( url.untaint )
+ u = URI::parse( url )
next unless u.host
threads << Thread.start( u, xml ) do |u, xml|
begin
Timeout::timeout( @conf['ping.timeout'].to_i ) do
Net::HTTP.start( u.host, u.port ) do |http|