From 3fa59712c868237d0ff59d91a7acacd47966409e Mon Sep 17 00:00:00 2001 From: rolux Date: Sun, 27 May 2012 23:16:35 +0200 Subject: [PATCH] fix a potential bug in Ox.decodeBase32 --- source/Ox/js/Encoding.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/Ox/js/Encoding.js b/source/Ox/js/Encoding.js index 9c1e6b90..f29e8779 100644 --- a/source/Ox/js/Encoding.js +++ b/source/Ox/js/Encoding.js @@ -66,7 +66,7 @@ Ox.decodeBase32 = function(string) { var index = Ox.BASE_32_DIGITS.indexOf( Ox.BASE_32_ALIASES[char] || char ); - return (index == -1 ? ' ' : index).toString(32); + return index == -1 ? ' ' : index.toString(32); }), 32); };