mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-26 16:03:18 +00:00
Sanitize color codes/names
This commit is contained in:
parent
7ae933a051
commit
aed65976ca
1 changed files with 2 additions and 2 deletions
|
@ -334,14 +334,14 @@ public class HtmlHelper {
|
||||||
switch (key) {
|
switch (key) {
|
||||||
case "color":
|
case "color":
|
||||||
String c = value
|
String c = value
|
||||||
.replace("\"", "")
|
|
||||||
.replace("none", "")
|
.replace("none", "")
|
||||||
.replace("unset", "")
|
.replace("unset", "")
|
||||||
.replace("inherit", "")
|
.replace("inherit", "")
|
||||||
.replace("initial", "")
|
.replace("initial", "")
|
||||||
.replace("windowtext", "")
|
.replace("windowtext", "")
|
||||||
.replace("transparent", "")
|
.replace("transparent", "")
|
||||||
.replace("!important", "");
|
.replace("!important", "")
|
||||||
|
.replaceAll("[^a-z0-9]", "");
|
||||||
|
|
||||||
Integer color = null;
|
Integer color = null;
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in a new issue