We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b8d85e commit 35e873dCopy full SHA for 35e873d
auth.cpp
@@ -87,13 +87,15 @@ void KeyAuth::api::init()
87
enckey = sentKey + XorStr("-") + secret;
88
89
std::string hash = checksum();
90
+ CURL* curl = curl_easy_init();
91
auto data =
92
XorStr("type=init") +
93
XorStr("&ver=") + version +
94
XorStr("&hash=") + hash +
95
XorStr("&enckey=") + sentKey +
- XorStr("&name=") + name +
96
+ XorStr("&name=") + curl_easy_escape(curl, name.c_str(), 0) +
97
XorStr("&ownerid=") + ownerid;
98
+ curl_easy_cleanup(curl);
99
100
auto response = req(data, url);
101
0 commit comments