Bugfix: website in URL generated by register_app1() is now escaped.

This commit is contained in:
tastytea 2018-03-07 17:38:07 +01:00
parent fc62a8ccb6
commit 90c2941b5d
Signed by: tastytea
GPG Key ID: 59346E0EA35C67E5
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
cmake_minimum_required (VERSION 3.7)
project (mastodon-cpp
VERSION 0.6.0
VERSION 0.6.1
LANGUAGES CXX
)

View File

@ -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;