Changeset 16441 for greenstone3


Ignore:
Timestamp:
2008-07-16T17:46:28+12:00 (16 years ago)
Author:
ak19
Message:

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

File:
1 edited

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    }
Note: See TracChangeset for help on using the changeset viewer.