Browse Source

fix base64 validation

Kolja Strohm 1 year ago
parent
commit
e3dd1fd6c9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Base64.cpp

+ 1 - 1
Base64.cpp

@@ -58,7 +58,7 @@ bool Framework::base64Decode(Text base64, char** data, int* length)
 	{
 		if (base64[l] == '=')
 			break;
-		if ((base64[l] - 'A' < 0 || base64[l] - 'A' > 25) && (base64[l] - 'a' < 0 || base64[l] - 'a' > 25) && (base64[l] - '0' < 0 || base64[l] - '0' > 9))
+		if (!base64_chars.hat(base64[l]))
 			return false;
 		l++;
 	}