1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-29 19:25:34 +00:00

TLS check: lower case

This commit is contained in:
M66B 2022-10-29 14:14:02 +02:00
parent 17bccaaf78
commit 78aa2d03fe

View file

@ -2444,9 +2444,10 @@ public class MessageHelper {
if (semi > 0)
header = header.substring(0, semi);
if (header.contains("using TLS") ||
header.contains("via HTTP") ||
header.contains("version=TLS")) {
String h = header.toLowerCase(Locale.ROOT);
if (h.contains("using tls") ||
h.contains("via http") ||
h.contains("version=tls")) {
Log.i("--- found TLS");
return true;
}