From 90c2941b5d1dfed69d2298de188eacb1b06ece4c Mon Sep 17 00:00:00 2001 From: tastytea Date: Wed, 7 Mar 2018 17:38:07 +0100 Subject: [PATCH] Bugfix: website in URL generated by register_app1() is now escaped. --- CMakeLists.txt | 2 +- src/mastodon-cpp.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6fff7ce..ff9e8ab 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required (VERSION 3.7) project (mastodon-cpp - VERSION 0.6.0 + VERSION 0.6.1 LANGUAGES CXX ) diff --git a/src/mastodon-cpp.cpp b/src/mastodon-cpp.cpp index 9fb7ac3..672e278 100644 --- a/src/mastodon-cpp.cpp +++ b/src/mastodon-cpp.cpp @@ -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;