Permalink
Browse files

Now detect invalid padding

  • Loading branch information...
1 parent bcd6004 commit 02a2745b4aa8214f2cae1bf0b15b447ca1a91b23 Nicholas C. Zakas committed Nov 28, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 encodings/base64/base64.js
@@ -93,7 +93,7 @@ function base64Decode(text){
i=0,
result = [];
- //remove any whitespace and equals signs
+ //remove any equals signs
text = text.replace(/=/g, "");
//loop over each character

0 comments on commit 02a2745

Please sign in to comment.