Changeset 20959


Ignore:
Timestamp:
2009-11-18T16:00:12+13:00 (12 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.

File:
1 edited

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