Ignore:
Timestamp:
2009-11-18T15:51:36+13:00 (14 years ago)
Author:
ak19
Message:

When dealing with a remote Greenstone server, file separators need to be replaced with vertical bar since we don't know what operating system the remote GS server is (and hence what File separator it uses).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gli/trunk/src/org/greenstone/gatherer/gui/ReplaceSrcDocWithHtmlPrompt.java

    r20924 r20957  
    284284        String srcdoc_file_relative_path = Gatherer.remoteGreenstoneServer.getPathRelativeToDirectory(
    285285        this.srcdoc_files[fileNum], collection_directory_path); // preserves spaces in filename
     286        srcdoc_file_relative_path = srcdoc_file_relative_path.replace(File.separatorChar, '|');
    286287
    287288        // base64 encode the relative filepath, so that special characters in the filename are preserved
Note: See TracChangeset for help on using the changeset viewer.