- client: curl_easy_escape() escapes way too much. Just escape spaces.

svn path=/trunk/boinc/; revision=24205
This commit is contained in:
David Anderson 2011-09-14 06:45:04 +00:00
parent 11a5372961
commit 1c039bab77
2 changed files with 8 additions and 2 deletions

View File

@ -6007,3 +6007,9 @@ David 13 Sept 2011
procinfo.cpp
client/
http_curl.cpp
David 13 Sept 2011
- client: curl_easy_escape() escapes way too much. Just escape spaces.
client/
http_curl.cpp

View File

@ -422,9 +422,9 @@ int HTTP_OP::libcurl_exec(
// the following seems to be a no-op
// curl_easy_setopt(curlEasy, CURLOPT_ERRORBUFFER, error_msg);
char* esc_url = curl_easy_escape(curlEasy, m_url, 0);
char esc_url[1024];
string_substitute(m_url, esc_url, sizeof(esc_url), " ", "%20");
curl_easy_setopt(curlEasy, CURLOPT_URL, esc_url);
curl_free(esc_url);
// This option determines whether curl verifies that the server
// claims to be who you want it to be.