fix a potential bug in Ox.decodeBase32

This commit is contained in:
rolux 2012-05-27 23:16:35 +02:00
parent 9d26a4b6c3
commit 3fa59712c8

View file

@ -66,7 +66,7 @@ Ox.decodeBase32 = function(string) {
var index = Ox.BASE_32_DIGITS.indexOf( var index = Ox.BASE_32_DIGITS.indexOf(
Ox.BASE_32_ALIASES[char] || char Ox.BASE_32_ALIASES[char] || char
); );
return (index == -1 ? ' ' : index).toString(32); return index == -1 ? ' ' : index.toString(32);
}), 32); }), 32);
}; };