summaryrefslogtreecommitdiff
path: root/plugins/Scriver
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-03-24 22:04:25 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-03-24 22:04:25 +0000
commit8f5d084383740f0848c4e181bde90a2aa238d9d1 (patch)
treeb6a27a8e87077cd5f0930faac399cd22250748f9 /plugins/Scriver
parent1e13a939b177960b7048b8532205bc369501d399 (diff)
MS_NETLIB_URLENCODE removed from all plugins, but still exists in the core
git-svn-id: http://svn.miranda-ng.org/main/trunk@4181 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Scriver')
-rw-r--r--plugins/Scriver/src/utils.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/plugins/Scriver/src/utils.cpp b/plugins/Scriver/src/utils.cpp
index 46bbc41530..1963baafd9 100644
--- a/plugins/Scriver/src/utils.cpp
+++ b/plugins/Scriver/src/utils.cpp
@@ -431,9 +431,8 @@ void SearchWord(TCHAR * word, int engine)
{
char szURL[4096];
if (word && word[0]) {
- char *wordUTF = mir_utf8encodeT(word);
- //char *wordURL = (char *)CallService(MS_NETLIB_URLENCODE, 0, (LPARAM)wordUTF);
- char *wordURL = url_encode(wordUTF);
+ mir_ptr<char> wordUTF( mir_utf8encodeT(word));
+ mir_ptr<char> wordURL( mir_urlEncode(wordUTF));
switch (engine) {
case SEARCHENGINE_WIKIPEDIA:
mir_snprintf(szURL, SIZEOF(szURL), "http://en.wikipedia.org/wiki/%s", wordURL);
@@ -462,8 +461,6 @@ void SearchWord(TCHAR * word, int engine)
break;
}
- mir_free(wordUTF);
- mir_free(wordURL);
CallService(MS_UTILS_OPENURL, 1, (LPARAM) szURL);
}
}