Skip to content

Commit

Permalink
Merge pull request ciaranj#69 from fjakobs/patch-2
Browse files Browse the repository at this point in the history
make sure base64EncodeChars, base64DecodeChars don't leak into the global scope
  • Loading branch information
ciaranj committed Oct 25, 2011
2 parents 9ea7ffb + bc0164e commit a918854
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/auth.strategies/http/base64.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

exports.encode = base64encode;
exports.decode = base64decode;

var base64EncodeChars, base64DecodeChars;

this.chars = function( string ) {
base64EncodeChars = string || "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
base64DecodeChars = [];
Expand Down

0 comments on commit a918854

Please sign in to comment.