Bugfix: website in URL generated by register_app1() is now escaped.
This commit is contained in:
parent
fc62a8ccb6
commit
90c2941b5d
|
@ -1,6 +1,6 @@
|
|||
cmake_minimum_required (VERSION 3.7)
|
||||
project (mastodon-cpp
|
||||
VERSION 0.6.0
|
||||
VERSION 0.6.1
|
||||
LANGUAGES CXX
|
||||
)
|
||||
|
||||
|
|
|
@ -184,7 +184,7 @@ const std::uint16_t API::register_app1(const string &client_name,
|
|||
"&client_id=" + client_id;
|
||||
if (!website.empty())
|
||||
{
|
||||
url += "&website=" + website;
|
||||
url += "&website=" + curlpp::escape(website);
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
Reference in New Issue