mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-31 14:17:03 +02:00
Sanitize color codes/names
This commit is contained in:
@@ -334,14 +334,14 @@ public class HtmlHelper {
|
||||
switch (key) {
|
||||
case "color":
|
||||
String c = value
|
||||
.replace("\"", "")
|
||||
.replace("none", "")
|
||||
.replace("unset", "")
|
||||
.replace("inherit", "")
|
||||
.replace("initial", "")
|
||||
.replace("windowtext", "")
|
||||
.replace("transparent", "")
|
||||
.replace("!important", "");
|
||||
.replace("!important", "")
|
||||
.replaceAll("[^a-z0-9]", "");
|
||||
|
||||
Integer color = null;
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user