summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
Diffstat (limited to 'protocols')
-rw-r--r--protocols/SkypeWeb/src/requests/search.h2
-rw-r--r--protocols/SkypeWeb/src/skype_search.cpp5
2 files changed, 3 insertions, 4 deletions
diff --git a/protocols/SkypeWeb/src/requests/search.h b/protocols/SkypeWeb/src/requests/search.h
index c31ceeec75..4628dfdd56 100644
--- a/protocols/SkypeWeb/src/requests/search.h
+++ b/protocols/SkypeWeb/src/requests/search.h
@@ -22,7 +22,7 @@ class GetSearchRequest : public HttpRequest
{
public:
GetSearchRequest(const char *token, const char *string) :
- HttpRequest(REQUEST_GET, FORMAT, "api.skype.com/search/users/any?keyWord=%s&contactTypes[]=skype", ptrA(mir_urlEncode(string)))
+ HttpRequest(REQUEST_GET, FORMAT, "api.skype.com/search/users/any?keyWord=%s&contactTypes[]=skype", string)
{
Headers
<< CHAR_VALUE("Accept", "application/json")
diff --git a/protocols/SkypeWeb/src/skype_search.cpp b/protocols/SkypeWeb/src/skype_search.cpp
index 9db84a6ca2..10d2ccbc88 100644
--- a/protocols/SkypeWeb/src/skype_search.cpp
+++ b/protocols/SkypeWeb/src/skype_search.cpp
@@ -29,9 +29,8 @@ void CSkypeProto::SearchBasicThread(void* id)
if (!IsOnline())
return;
ptrA token(getStringA("TokenSecret"));
- //need to convert search string
- char *string = mir_t2a((TCHAR*)id);
- PushRequest(new GetSearchRequest(token, (char*)string), &CSkypeProto::OnSearch);
+ ptrA string(mir_urlEncode(ptrA(mir_utf8encodeT((TCHAR*)id))));
+ PushRequest(new GetSearchRequest(token, string), &CSkypeProto::OnSearch);
}
void CSkypeProto::OnSearch(const NETLIBHTTPREQUEST *response)