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