Commits

Rich Manalang [Atlassian] committed 2c560a4 Merge

Merged in rodogu/atlassian-connect-express/ac-772 (pull request #8)

reverting encodeData to handle single quotes properly

  • Participants
  • Parent commits 57d9e0f, 9196776

Comments (0)

Files changed (1)

File lib/internal/oauth.js

     var result = encodeURIComponent(toEncode);
     // Fix the mismatch between OAuth's RFC3986's and Javascript's beliefs in what is right and wrong ;)
     return result.replace(/!/g, '%21')
-      .replace(/"/g, '%27')
+      .replace(/'/g, '%27')
       .replace(/\(/g, '%28')
       .replace(/\)/g, '%29')
       .replace(/\*/g, '%2A');