Sanitize color codes/names

pull/172/head
M66B 5 years ago
parent 7ae933a051
commit aed65976ca

@ -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 {

Loading…
Cancel
Save