修复isBase64判断不正确的问题

This commit is contained in:
gonggy 2022-07-24 14:14:18 +08:00
parent 630ed4775f
commit c111851996

View File

@ -352,6 +352,9 @@ public class Base64 {
* @since 5.7.5
*/
public static boolean isBase64(byte[] base64Bytes) {
if (base64Bytes == null || base64Bytes.length < 3) {
return false;
}
boolean hasPadding = false;
for (byte base64Byte : base64Bytes) {
if (hasPadding) {