Changeset 16441

Show
Ignore:
Timestamp:
16.07.2008 17:46:28 (11 years ago)
Author:
ak19
Message:

Correction to get ReplaceSrcDocWithHTML to work on a remote GS server running on Windows

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • greenstone3/trunk/web/WEB-INF/cgi/gliserver.pl

    r16427 r16441  
    958958    } 
    959959    $gsdl_cgi->delete("script"); 
     960  
    960961    my $collection = $gsdl_cgi->clean_param("c"); 
    961962    if ((!defined $collection) || ($collection =~ m/^\s*$/)) { 
     
    983984    } 
    984985    $gsdl_cgi->delete("file"); 
    985     $file =~ s/ /\\ /g; # escape all spaces in filename with a backslash, i.e. "\ ". 
     986    #$file =~ s/ /\\ /g; # Works on linux: escape all spaces in filename with a backslash, i.e. "\ ". 
     987    $file = "\"$file\""; # Windows: bookend the relative filepath with quotes in case it contains spaces  
    986988    $perl_args = $file; 
    987989    }