diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2015-06-12 20:26:37 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2015-06-12 20:26:37 +0000 |
commit | 56438091a0ed892f41bda356f4fdf843c7b09a72 (patch) | |
tree | 10ec0f45a8669c3241143a54da8b89a6833dee80 /plugins | |
parent | 0420af6e7d00d0877f53b6ea4434050c44b8dd4f (diff) |
Dropbox: fix encoding
git-svn-id: http://svn.miranda-ng.org/main/trunk@14137 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/Dropbox/src/dropbox_transfers.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/Dropbox/src/dropbox_transfers.cpp b/plugins/Dropbox/src/dropbox_transfers.cpp index 865158186d..b32ae6bbda 100644 --- a/plugins/Dropbox/src/dropbox_transfers.cpp +++ b/plugins/Dropbox/src/dropbox_transfers.cpp @@ -46,8 +46,7 @@ void CDropbox::SendFileChunkedNext(const char *data, size_t size, const char *up void CDropbox::SendFileChunkedLast(const char *path, const char *uploadId)
{
ptrA token(db_get_sa(NULL, MODULE, "TokenSecret"));
- ptrA encodedPath(mir_utf8encode(path));
- UploadFileChunkRequest request(token, uploadId, (char*)encodedPath);
+ UploadFileChunkRequest request(token, uploadId, path);
NLHR_PTR response(request.Send(hNetlibConnection));
HandleHttpResponseError(response);
}
@@ -55,8 +54,7 @@ void CDropbox::SendFileChunkedLast(const char *path, const char *uploadId) void CDropbox::CreateFolder(const char *path)
{
ptrA token(db_get_sa(NULL, MODULE, "TokenSecret"));
- ptrA encodedPath(mir_utf8encode(path));
- CreateFolderRequest request(token, encodedPath);
+ CreateFolderRequest request(token, path);
NLHR_PTR response(request.Send(hNetlibConnection));
// forder exists on server
|