mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-18 21:28:54 +00:00
Sanitize priority
This commit is contained in:
parent
0a9748fffd
commit
43af1a68f7
1 changed files with 2 additions and 1 deletions
|
@ -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) ||
|
||||
|
|
Loading…
Reference in a new issue