Skip to content

Commit

Permalink
Merge pull request #165 from suryagh/patch-1
Browse files Browse the repository at this point in the history
encodeURIComponent is redundant
  • Loading branch information
jaredhanson committed May 17, 2016
2 parents b4f1cff + 732121d commit 9246174
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/strategy.js
Expand Up @@ -143,7 +143,7 @@ Strategy.prototype.userProfile = function(accessToken, done) {
// For further details, refer to:
// https://developers.facebook.com/docs/reference/api/securing-graph-api/
var proof = crypto.createHmac('sha256', this._clientSecret).update(accessToken).digest('hex');
url.search = (url.search ? url.search + '&' : '') + 'appsecret_proof=' + encodeURIComponent(proof);
url.search = (url.search ? url.search + '&' : '') + 'appsecret_proof=' + proof;
}
if (this._profileFields) {
var fields = this._convertProfileFields(this._profileFields);
Expand Down

0 comments on commit 9246174

Please sign in to comment.