emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/oauth2 384ae30 03/23: * packages/oauth2/oauth2.el (oaut


From: Stefan Monnier
Subject: [elpa] externals/oauth2 384ae30 03/23: * packages/oauth2/oauth2.el (oauth2-request-authorization): Add missing
Date: Tue, 1 Dec 2020 16:31:57 -0500 (EST)

branch: externals/oauth2
commit 384ae3017a5367b2a705627bbaaaa3fc79d51fc6
Author: Julien Danjou <julien@danjou.info>
Commit: Julien Danjou <julien@danjou.info>

    * packages/oauth2/oauth2.el (oauth2-request-authorization): Add missing
      calls to url-hexify-string.
---
 oauth2.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/oauth2.el b/oauth2.el
index fbe77f6..7966e62 100644
--- a/oauth2.el
+++ b/oauth2.el
@@ -43,10 +43,10 @@ CLIENT-ID is the client id provided by the provider.
 It returns the code provided by the service."
   (browse-url (concat auth-url
                       (if (string-match-p "\?" auth-url) "&" "?")
-                      "client_id=" client-id
+                      "client_id=" (url-hexify-string client-id)
                       
"&response_type=code&redirect_uri=urn:ietf:wg:oauth:2.0:oob"
                       (if scope (concat "&scope=" (url-hexify-string scope)) 
"")
-                      (if state (concat "&state=" state) "")))
+                      (if state (concat "&state=" (url-hexify-string state)) 
"")))
   (read-string "Enter the code your browser displayed: "))
 
 (defun oauth2-request-access-parse ()



reply via email to

[Prev in Thread] Current Thread [Next in Thread]