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/gsprintf.pm

    r31419 r31860  
    7171sub gsprintf
    7272{
     73    my ($handle, $text_string, @text_arguments) = @_;   
     74    _gsprintf($handle, $text_string, 0, @text_arguments);
     75}
     76
     77sub gsprintf_multiline
     78{
    7379    my ($handle, $text_string, @text_arguments) = @_;
     80    _gsprintf($handle, $text_string, 1, @text_arguments);
     81}
     82
     83sub _gsprintf
     84{
     85    my ($handle, $text_string, $multiline, @text_arguments) = @_;
    7486
    7587    # Return unless the required arguments were supplied
     
    8294    my $text_string_resolved = sprintf($text_string, @text_arguments);
    8395
     96    if($multiline) { # replace newlines
     97    $text_string_resolved =~ s@\\n@\n@g;
     98    }
     99   
    84100    if ($freetext_xml_mode) {
    85101    $text_string_resolved = make_freetext_xml_safe($text_string_resolved);
    86102    }
    87 
     103   
    88104    print $handle $text_string_resolved;
    89105}
    90106
    91    
     107
    92108
    93109sub lookup_string
Note: See TracChangeset for help on using the changeset viewer.