Ignore:
Timestamp:
2017-08-09T16:48:21+12:00 (7 years ago)
Author:
ak19
Message:

The changes necessary for getting the new no_check_certificate checkbox to appear and work in GLI and get propagated to the perl code that launches wget. This checkbox controls whether wget is launched with the no-check-certificate flag to retrieve Https URLs despite lack of (valid) certificates.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/perllib/downloaders/WgetDownload.pm

    r31856 r31860  
    7070    'type' => "string",
    7171    'reqd' => "no",
    72     'hiddengli' => "yes"}];
     72    'hiddengli' => "yes"},
     73      { 'name' => "no_check_certificate",
     74    'desc' => "{WgetDownload.no_check_certificate}",
     75    'type' => "flag",
     76    'reqd' => "no",
     77    'hiddengli' => "yes"}
     78     ];
    7379
    7480my $options = { 'name'     => "WgetDownload",
     
    183189    }
    184190
    185     if($self->{'no_check_certificate'} && $self->{'url'} =~ m/^https\:/) {
    186         $strOptions .= " --no-check-certificate ";
    187     }
     191    if($self->{'no_check_certificate'}) { #&& $self->{'url'} =~ m/^https\:/) { # URL may be http that gets redirected to https
     192   
     193    $strOptions .= " --no-check-certificate ";
     194    }
    188195   
    189196    return $strOptions;
Note: See TracChangeset for help on using the changeset viewer.