Re: project/icla link validation problem

2017-11-15 Thread sebb
On 13 November 2017 at 10:14, Daniel Gruno wrote: > On 11/13/2017 11:08 AM, sebb wrote: >> On 13 November 2017 at 02:36, Craig Russell wrote: >>> When trying to validate links for VOTE and NOTICE, the demo code attempts >>> to retrieve the message from lists.apache.org. >>> >>> # attempt to fe

Re: project/icla link validation problem

2017-11-13 Thread Daniel Gruno
On 11/13/2017 11:08 AM, sebb wrote: > On 13 November 2017 at 02:36, Craig Russell wrote: >> When trying to validate links for VOTE and NOTICE, the demo code attempts to >> retrieve the message from lists.apache.org. >> >> # attempt to fetch the page >> if @votelink =~ /^https?:/i >> uri =

Re: project/icla link validation problem

2017-11-13 Thread sebb
On 13 November 2017 at 02:36, Craig Russell wrote: > When trying to validate links for VOTE and NOTICE, the demo code attempts to > retrieve the message from lists.apache.org. > > # attempt to fetch the page > if @votelink =~ /^https?:/i > uri = URI.parse(@votelink) > http = Net::HTTP

project/icla link validation problem

2017-11-12 Thread Craig Russell
When trying to validate links for VOTE and NOTICE, the demo code attempts to retrieve the message from lists.apache.org. # attempt to fetch the page if @votelink =~ /^https?:/i uri = URI.parse(@votelink) http = Net::HTTP.new(uri.host.untaint, uri.port) if uri.scheme == 'https'