mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Common/Encoding: fix Base32 alphabet (oops)
(cherry picked from commit e457b77b4b)
This commit is contained in:
@@ -36,9 +36,10 @@ struct B32Impl
|
||||
{
|
||||
if (v == '0') return Decode('O');
|
||||
if (v == '1') return Decode('l');
|
||||
if (v == '8') return Decode('B');
|
||||
if (('A' <= v) && (v <= 'Z')) return (v-'A');
|
||||
if (('a' <= v) && (v <= 'z')) return (v-'a');
|
||||
if (('2' <= v) && (v <= '8')) return (v-'2')+26;
|
||||
if (('2' <= v) && (v <= '7')) return (v-'2')+26;
|
||||
return DECODE_ERROR;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user