diff --git a/src/cocoatweet/oauth/oauth.cc b/src/cocoatweet/oauth/oauth.cc index 8224e68..07c44e5 100644 --- a/src/cocoatweet/oauth/oauth.cc +++ b/src/cocoatweet/oauth/oauth.cc @@ -24,7 +24,7 @@ std::map OAuth1::signature( const std::string& _url) { std::vector tmp; for (const auto& [key, value] : _param) { - tmp.push_back(key + "=" + value); + tmp.push_back(key + "=" + CocoaTweet::Util::urlEncode(value)); } std::string query = CocoaTweet::Util::join(tmp, "&");