Sanitize priority

This commit is contained in:
M66B 2020-01-27 09:23:15 +01:00
parent 0a9748fffd
commit 43af1a68f7
1 changed files with 2 additions and 1 deletions

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) ||