diff options
Diffstat (limited to 'src/server/authserver/Authentication/TOTP.cpp')
-rw-r--r-- | src/server/authserver/Authentication/TOTP.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/server/authserver/Authentication/TOTP.cpp b/src/server/authserver/Authentication/TOTP.cpp index 43c97c296d9..51a21822bc0 100644 --- a/src/server/authserver/Authentication/TOTP.cpp +++ b/src/server/authserver/Authentication/TOTP.cpp @@ -16,6 +16,7 @@ */ #include "TOTP.h" +#include <cstring> int base32_decode(const char* encoded, char* result, int bufSize) { @@ -29,7 +30,7 @@ int base32_decode(const char* encoded, char* result, int bufSize) for (const char *ptr = encoded; count < bufSize && *ptr; ++ptr) { char ch = *ptr; - if (ch == ' ' || ch == ' ' || ch == '\r' || ch == '\n' || ch == '-') + if (ch == ' ' || ch == '\t' || ch == '\r' || ch == '\n' || ch == '-') continue; buffer <<= 5; |