Skip to content

Commit

Permalink
Fix ascii validate for ppv2 tls. (#7703)
Browse files Browse the repository at this point in the history
Co-authored-by: ShuangxiDing <[email protected]>
  • Loading branch information
dingshuangxi888 and ShuangxiDing authored Dec 27, 2023
1 parent 59e8f9b commit 2c5bc14
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public static boolean isAscii(byte[] subject) {
return false;
}
for (byte b : subject) {
if ((b & 0x80) != 0) {
if (b < 32 || b > 126) {
return false;
}
}
Expand Down

0 comments on commit 2c5bc14

Please sign in to comment.