mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-04-19 03:01:48 +08:00
修复isBase64判断不正确的问题
This commit is contained in:
parent
630ed4775f
commit
c111851996
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user