fixing a bug in IE to encode stuff in base64

git-svn-id: https://beef.googlecode.com/svn/trunk@554 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9
This commit is contained in:
mosse.benjamin
2010-11-21 23:07:00 +00:00
parent a58b7f829f
commit 1e91468143

View File

@@ -12,6 +12,9 @@ beef.encode.base64 = {
var enc1, enc2, enc3, enc4;
var i = 0;
if(typeof input != "string")
input = input.toString();
do {
chr1 = input.charCodeAt(i++);
chr2 = input.charCodeAt(i++);