Permalink
Browse files

URLEncoded consumer key and token to deal with possible special chars…

… in keys.
  • Loading branch information...
sdesapio committed Nov 23, 2011
1 parent 74d7c07 commit ed77b85fa48457d17cf39bf8f35ff653642b8c8d
Showing with 3 additions and 3 deletions.
  1. +3 −3 cLibOAuth.RequestURL.asp
View
@@ -89,7 +89,7 @@
' PARAMETERS:
' PURPOSE:
'
- ' AUTHOR: sdesapio DATE: 04.04.10 LAST MODIFIED: 04.04.10
+ ' AUTHOR: sdesapio DATE: 04.04.10 LAST MODIFIED: 11.23.11
'**************************************************************************
Private Function Get_Signature()
Dim strBaseSignature : strBaseSignature = _
@@ -98,8 +98,8 @@
Utils.URLEncode(m_strParameters)
Dim strSecret : strSecret = _
- m_strConsumerSecret & "&" & _
- m_strTokenSecret
+ Utils.URLEncode(m_strConsumerSecret) & "&" & _
+ Utils.URLEncode(m_strTokenSecret)
Get_Signature = b64_hmac_sha1(strSecret, strBaseSignature)
End Function

0 comments on commit ed77b85

Please sign in to comment.