diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2015-06-12 20:53:11 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2015-06-12 20:53:11 +0000 |
commit | 28c0457c46f90e11b83c49b69f03cf85e932cd05 (patch) | |
tree | 88033a477feec74c306152a961d00acb74f21835 | |
parent | 7b271013d8288e23b5c56fab22643f7d3b2ee502 (diff) |
Dropbox: one more fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@14140 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r-- | plugins/Dropbox/src/api/operations.h | 2 | ||||
-rw-r--r-- | plugins/Dropbox/src/dropbox_transfers.cpp | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/plugins/Dropbox/src/api/operations.h b/plugins/Dropbox/src/api/operations.h index b94d90b4e7..e41dbaabfe 100644 --- a/plugins/Dropbox/src/api/operations.h +++ b/plugins/Dropbox/src/api/operations.h @@ -4,7 +4,7 @@ class ShareRequest : public HttpRequest
{
public:
- ShareRequest(const char *token, const char *path, bool useShortUrl = true, const char *root = "auto") :
+ ShareRequest(const char *token, const char *path, bool useShortUrl, const char *root = "auto") :
HttpRequest(REQUEST_POST, FORMAT, DROPBOX_API_URL "/shares/%s/%s", root, path)
{
if (!useShortUrl)
diff --git a/plugins/Dropbox/src/dropbox_transfers.cpp b/plugins/Dropbox/src/dropbox_transfers.cpp index b32ae6bbda..226d109ce3 100644 --- a/plugins/Dropbox/src/dropbox_transfers.cpp +++ b/plugins/Dropbox/src/dropbox_transfers.cpp @@ -67,9 +67,8 @@ void CDropbox::CreateFolder(const char *path) void CDropbox::CreateDownloadUrl(const char *path, char *url)
{
ptrA token(db_get_sa(NULL, MODULE, "TokenSecret"));
- ptrA encodedPath(mir_utf8encode(path));
bool useShortUrl = db_get_b(NULL, MODULE, "UseSortLinks", 1) > 0;
- ShareRequest request(token, encodedPath, useShortUrl);
+ ShareRequest request(token, path, useShortUrl);
NLHR_PTR response(request.Send(hNetlibConnection));
HandleHttpResponseError(response);
|