Changeset 20959

Show
Ignore:
Timestamp:
18.11.2009 16:00:12 (10 years ago)
Author:
ak19
Message:

When working with the remote Greenstone server, the client (running on whichever operating system) will now replace file separators to the file to be exploded or replaced with html with vertical bars. The server side should now replace these vertical bars with the correct file separator for the server side operating system.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/cgi-bin/gliserver.pl

    r20958 r20959  
    10151015    $file = $gsdl_cgi->decode($file); 
    10161016    $file = "\"$file\""; # Windows: bookend the relative filepath with quotes in case it contains spaces  
     1017    $file =~ s/\|/&util::get_dirsep()/eg;  # Convert the '|' characters into whatever is right for this OS 
    10171018    $perl_args = $file; 
    10181019    }