summaryrefslogtreecommitdiff
path: root/plugins/CrashDumper/src/upload.cpp
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2014-11-11 19:23:00 +0000
committerRobert Pösel <robyer@seznam.cz>2014-11-11 19:23:00 +0000
commitb412f0eb2dbdee4343ee131b7c8495906b432a37 (patch)
treee92b236b863aed530673682138a3b8dfceb3aeb2 /plugins/CrashDumper/src/upload.cpp
parent53b7ac936946b665d627b46df67d2c86441105e1 (diff)
CrashDumper: Miranda-VI is dead, lets use our own implementation... Version dump.
(It's a bit messy, should be improved later) git-svn-id: http://svn.miranda-ng.org/main/trunk@10955 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/CrashDumper/src/upload.cpp')
-rw-r--r--plugins/CrashDumper/src/upload.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/plugins/CrashDumper/src/upload.cpp b/plugins/CrashDumper/src/upload.cpp
index a964c41967..e49d2825c4 100644
--- a/plugins/CrashDumper/src/upload.cpp
+++ b/plugins/CrashDumper/src/upload.cpp
@@ -68,10 +68,10 @@ void OpenAuthUrl(const char* url)
if (user[0] && pass[0]) {
char str[256];
mir_snprintf(str, sizeof(str), url, user);
- mir_snprintf(str, sizeof(str), "http://www.miranda-vi.org/cdlogin?name=%s&pass=%s&redir=%s", user, pass, ptrA(mir_urlEncode(str)));
+ mir_snprintf(str, sizeof(str), "http://www.miranda-ng.org/versioninfo/detail/%s", user);
CallService(MS_UTILS_OPENURL, OUF_NEWWINDOW, (LPARAM)str);
}
- else CallService(MS_UTILS_OPENURL, OUF_NEWWINDOW, (LPARAM)"http://www.miranda-vi.org/");
+ else CallService(MS_UTILS_OPENURL, OUF_NEWWINDOW, (LPARAM)"http://www.miranda-ng.org/versioninfo/");
}
void CreateAuthString(char* auth)
@@ -205,7 +205,13 @@ bool InternetDownloadFile(const char *szUrl, VerTrnsfr* szReq)
void __cdecl VersionInfoUploadThread(void* arg)
{
VerTrnsfr* trn = (VerTrnsfr*)arg;
- InternetDownloadFile("http://www.miranda-vi.org/uploadpost", trn);
+
+ char user[64], pass[40];
+ GetLoginStr(user, sizeof(user), pass);
+ char str[256];
+ mir_snprintf(str, sizeof(str), "http://www.miranda-ng.org/en/versioninfo/upload?login=%s&pass=%s", user, pass);
+
+ InternetDownloadFile(str, trn);
mir_free(trn->buf);
mir_free(trn);
}