- Timestamp:
- 2009-03-09T19:31:58+13:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gli/trunk/src/org/greenstone/gatherer/remote/RemoteGreenstoneServerAction.java
r17612 r18646 41 41 import org.greenstone.gatherer.Gatherer; 42 42 import org.greenstone.gatherer.collection.CollectionManager; 43 import org.greenstone.gatherer.feedback.Base64; 43 44 import org.greenstone.gatherer.shell.GShell; 44 45 import org.greenstone.gatherer.util.UnzipTools; … … 150 151 String delete_collection_file_command = "cmd=delete-collection-file"; 151 152 delete_collection_file_command += "&c=" + URLEncoder.encode(collection_name, "UTF-8"); 152 delete_collection_file_command += "&file=" + URLEncoder.encode(collection_file_relative_path, "UTF-8");153 delete_collection_file_command += "&file=" + Base64.encodeBytes(collection_file_relative_path.getBytes()); 153 154 action_output = remote.sendCommandToServer(delete_collection_file_command, null); 154 155 } … … 307 308 String file_exists_command = "cmd=file-exists"; 308 309 file_exists_command += "&c=" + URLEncoder.encode(collection_name, "UTF-8"); 309 file_exists_command += "&file=" + URLEncoder.encode(collection_file_relative_path, "UTF-8"); 310 // base64 encode the filename to preserve special characters 311 file_exists_command += "&file=" + Base64.encodeBytes(collection_file_relative_path.getBytes()); 312 310 313 // returns either "File <filename> exists" or "File <filename> does not exist" 311 314 // for the file/folder collection_file
Note:
See TracChangeset
for help on using the changeset viewer.