From 3c99ccab3e178e2e0877b3e0ac1c724054fc50e2 Mon Sep 17 00:00:00 2001 From: keita Date: Wed, 10 Mar 2021 22:35:04 +0900 Subject: [PATCH] =?UTF-8?q?=E7=BD=B2=E5=90=8D=E6=99=82=E3=81=ABurlEncode?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/cocoatweet/oauth/oauth.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, "&");