1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-18 21:28:54 +00:00

Sanitize priority

This commit is contained in:
M66B 2020-01-27 09:23:15 +01:00
parent 0a9748fffd
commit 43af1a68f7

View file

@ -751,7 +751,8 @@ public class MessageHelper {
int sp = header.indexOf(" ");
if (sp >= 0)
header = header.substring(0, sp); // "2 (High)"
header = header.trim();
header = header.replaceAll("[^A-Za-z0-9\\-]", "");
}
if ("high".equalsIgnoreCase(header) ||