Skip to content

Commit

Permalink
Fixed flaw in decoding, now better handles missing equals sign
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicholas C. Zakas committed Nov 15, 2009
1 parent b67bb9b commit 78d25e4
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion encodings/base64/base64.js
Expand Up @@ -170,7 +170,6 @@ function base64Decode(text){
//transform what remains back into characters
while(bits.length){
part = bits.splice(0, 8).join("");
console.log(part);
result.push(String.fromCharCode(parseInt(part, 2)));
}

Expand Down

0 comments on commit 78d25e4

Please sign in to comment.